*,
*::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.06) 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 visual — pipeline diagram */
.hero-visual {
  width: 100%;
  margin-top: 64px;
  background: var(--bg-card);
  border: 1px solid var(--brand-glow);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(224, 0, 77, 0.07),
    inset 0 0 60px rgba(224, 0, 77, 0.02);
}

/* ─── PROBLEM ────────────────────────────────── */
.problem-body {
  font-size: 17px;
  color: var(--text);
  line-height: 1.85;
  margin: 32px 0 10px;
  max-width: 640px;
}
.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);
}

/* ─── APPROACH (2-PHASE) ────────────────────── */
.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 48px;
  background: var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.intro-card {
  background: var(--bg-card);
  padding: 40px 36px;
  position: relative;
  transition: background 0.3s;
}
.intro-card:last-child {
  background: var(--bg-card2);
}
.intro-card:hover {
  background: var(--bg-card2);
}
.intro-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-dim);
  border: 1px solid rgba(224, 0, 77, 0.2);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.intro-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}
.intro-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}
.intro-point {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 10px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.intro-point::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--brand);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── CAPABILITIES (3-COLUMN) ───────────────── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    background 0.3s;
}
.cap-card:hover {
  border-color: rgba(224, 0, 77, 0.3);
  box-shadow: 0 0 32px rgba(224, 0, 77, 0.08);
  background: var(--bg-card2);
}
.cap-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.cap-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}
.cap-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Capability — mini UI mockup */
.cap-ui {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
  font-size: 11px;
}
.cap-ui-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--text-muted);
}
.cap-ui-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--brand);
  background: var(--brand-dim);
  border: 1px solid var(--brand-glow);
  padding: 2px 7px;
  border-radius: 4px;
}

/* GTM event log mockup */
.event-log {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.event-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  font-size: 11px;
}
.event-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.event-dot.ok {
  background: #22c55e;
}
.event-dot.warn {
  background: #eab308;
}
.event-name {
  color: var(--text-secondary);
  flex: 1;
  min-width: 0;
}

/* Dashboard mockup bars */
.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 40px;
  margin-bottom: 8px;
}
.dash-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--border);
}
.dash-bar.hl {
  background: rgba(224, 0, 77, 0.55);
}
.dash-bar:hover {
  background: rgba(224, 0, 77, 0.8);
}
/* Mon-Sun KPI bar 높이 (시안 데이터 값) */
.dash-chart .dash-bar:nth-child(1) {
  height: 50%;
}
.dash-chart .dash-bar:nth-child(2) {
  height: 62%;
}
.dash-chart .dash-bar:nth-child(3) {
  height: 78%;
}
.dash-chart .dash-bar:nth-child(4) {
  height: 65%;
}
.dash-chart .dash-bar:nth-child(5) {
  height: 85%;
}
.dash-chart .dash-bar:nth-child(6) {
  height: 72%;
}
.dash-chart .dash-bar:nth-child(7) {
  height: 90%;
}
.dash-labels {
  display: flex;
  gap: 5px;
}
.dash-label {
  flex: 1;
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
}

/* LTV algo steps */
.ltv-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ltv-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border-left: 2px solid var(--border);
}
.ltv-step.active {
  color: var(--text-secondary);
  border-left-color: var(--brand);
  background: rgba(224, 0, 77, 0.06);
}
.ltv-step-num {
  font-size: 10px;
  font-weight: 700;
  color: var(--brand);
  flex-shrink: 0;
}

.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.cap-tag {
  display: inline-block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ─── STACK ──────────────────────────────────── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 48px;
  background: var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.stack-card {
  background: var(--bg-card);
  padding: 32px 28px;
  transition: background 0.3s;
}
.stack-card:hover {
  background: var(--bg-card2);
}
.stack-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.stack-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.stack-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
}
.stack-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.stack-tool {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 11px;
  border-radius: 7px;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.stack-card:hover .stack-tool {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ─── DATA FLOW ──────────────────────────────── */
.flow-wrap {
  margin-top: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.flow-arrow {
  font-size: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

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

/* ─── CLIENTS MARQUEE ─────────────────────────── */
.logo-marquee-wrap {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, 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;
}

/* ─── CTA ─────────────────────────────────────── */
.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 50% 50%,
    rgba(224, 0, 77, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}
.cta-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.cta-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
}
/* ─── FOOTER ──────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo img {
  height: 22px;
  display: block;
  opacity: 0.6;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── RESPONSIVE ─────────────────────── */

/* ≤1023: cap-grid 1col stack */
@media (max-width: 1023px) {
  .cap-grid {
    grid-template-columns: 1fr !important;
  }
}

/* hero/section padding, h1, hero-subtitle, intro-card padding은
   mobile-fixes.css가 공통 처리. 여기에는 ME 고유 컴포넌트만 둔다. */
@media (max-width: 767px) {
  /* Approach (2-phase) */
  .intro-split {
    grid-template-columns: 1fr !important;
    gap: 1px !important;
    margin-top: 36px !important;
  }

  .intro-title {
    font-size: 22px !important;
    line-height: 1.35 !important;
  }

  .intro-desc,
  .intro-point {
    font-size: 14px !important;
    line-height: 1.75 !important;
  }

  /* Capability cards */
  .cap-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-top: 36px !important;
  }

  .cap-card {
    padding: 28px 22px !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .cap-title {
    font-size: 22px !important;
    line-height: 1.35 !important;
    word-break: keep-all;
  }

  .cap-desc {
    font-size: 14px !important;
    line-height: 1.75 !important;
  }

  .cap-ui {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .event-row,
  .ltv-step {
    min-width: 0 !important;
  }

  .event-name,
  .event-status {
    min-width: 0 !important;
    word-break: break-word;
  }

  .dash-chart,
  .dash-labels {
    min-width: 0 !important;
  }

  .cap-tags {
    gap: 8px !important;
  }

  .cap-tag {
    font-size: 11px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
  }

  /* Stack / flow */
  .stack-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .cap-card {
    padding: 24px 20px !important;
  }

  .cap-title,
  .intro-title {
    font-size: 20px !important;
  }
}
