*,
*::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;
  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 ──────────────────────── */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 64px;
}

/* ─── PROBLEM SECTION ─────────────────────────── */
.problem-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
}
.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);
}

/* ─── INTRO SECTION ──────────────────────────── */
.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 48px 0;
}
.intro-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px 36px;
  position: relative;
}
.intro-card:first-child {
  border-radius: 14px 0 0 14px;
}
.intro-card:last-child {
  border-radius: 0 14px 14px 0;
  border-color: var(--brand-glow);
}
.intro-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.intro-card:last-child .intro-tag {
  color: var(--brand);
  background: var(--brand-dim);
}
.intro-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.intro-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.intro-point {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.intro-point::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
  flex-shrink: 0;
}
.intro-card:last-child .intro-point {
  color: rgba(224, 0, 77, 0.9);
}
.intro-card:last-child .intro-point::before {
  background: var(--brand);
}

/* ─── IMPLEMENTATION STEPS ────────────────────── */
.step-card {
  background: var(--bg-card);
  padding: 36px 40px;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
  position: relative;
}
.step-card:last-child {
  border-bottom: none;
}
.step-card:hover {
  background: var(--bg-card2);
}
.step-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.3s;
}
.step-card:hover::before {
  background: var(--brand);
}
.step-num {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.step-num-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-dim);
  border: 1px solid rgba(224, 0, 77, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
}
.step-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}
.step-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.step-tag {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ─── BRAZE INTEGRATION (Image section) ──────── */
#braze-integration {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
#braze-integration > * {
  position: relative;
  z-index: 1;
}

/* ─── CHANNELS SECTION ────────────────────────── */

/* ─── ADVANCED OPS SECTION ───────────────────── */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.adv-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;
}
.adv-card:hover {
  border-color: rgba(224, 0, 77, 0.3);
  box-shadow: 0 0 32px rgba(224, 0, 77, 0.08);
}
.adv-card:last-child {
  grid-column: 1 / -1;
}
.adv-card-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.adv-card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.adv-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}
.adv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.adv-tag {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
}

/* Mini UI mockups inside adv-cards */
.adv-ui {
  margin-top: 20px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.adv-ui-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.adv-ui-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-dim);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(224, 0, 77, 0.2);
}
.adv-metric-row {
  display: flex;
  gap: 12px;
}
.adv-metric {
  flex: 1;
}
.adv-metric-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.adv-metric-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.adv-metric-val .unit {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.adv-metric-val .delta {
  font-size: 11px;
  color: #22c55e;
  font-weight: 500;
}

.adv-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
  margin-top: 10px;
}
.adv-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px 2px 0 0;
}
.adv-bar.a {
  background: rgba(224, 0, 77, 0.45);
}
.adv-bar.b {
  background: rgba(224, 0, 77, 0.65);
}
/* A/B 테스트 막대 높이 (시안 데이터 값) */
.adv-bars .adv-bar:nth-child(1) {
  height: 50%;
}
.adv-bars .adv-bar:nth-child(2) {
  height: 56%;
}
.adv-bars .adv-bar:nth-child(3) {
  height: 44%;
}
.adv-bars .adv-bar:nth-child(4) {
  height: 60%;
}
.adv-bars .adv-bar:nth-child(5) {
  height: 50%;
}
.adv-bars .adv-bar:nth-child(6) {
  height: 72%;
}
.adv-bars .adv-bar:nth-child(7) {
  height: 85%;
}
.adv-bars .adv-bar:nth-child(8) {
  height: 75%;
}

/* 개인화 메시지 데모 (#advanced 카드 02) */
.adv-ui--lg {
  padding: 16px;
}
.adv-message {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.adv-message-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.adv-message-text {
  font-size: 12px;
  color: var(--text);
  line-height: 1.7;
}
.adv-highlight {
  color: var(--brand);
  font-weight: 600;
}
.adv-highlight--mid {
  font-weight: 500;
}

/* ─── SOLUTIONS SECTION ──────────────────────── */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 48px;
}
.solution-item {
  background: var(--bg-card3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition:
    border-color 0.3s,
    transform 0.2s,
    box-shadow 0.2s;
}
.solution-item:hover {
  border-color: var(--brand-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.solution-logo {
  max-width: 130px;
  max-height: 42px;
  width: auto;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
}

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

/* ≤1023: adv-grid 1col stack */
@media (max-width: 1023px) {
  .adv-grid {
    grid-template-columns: 1fr !important;
  }
  .adv-card:last-child {
    grid-column: auto !important;
  }
}

/* ≤767: solutions 2-col — #id 셀렉터로 mobile-fixes의 1col override */
@media (max-width: 767px) {
  #solutions .solutions-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  #solutions .solution-item {
    padding: 18px !important;
    min-height: 80px !important;
  }
  #solutions .solution-logo {
    max-width: 110px !important;
    max-height: 36px !important;
  }
}
.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 ─────────────────────────────────────── */
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(224, 0, 77, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(224, 0, 77, 0.04) 0%, transparent 60%);
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}
.cta-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}
/* ─── FOOTER ──────────────────────────────────── */
footer {
  padding: 40px 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: 22px;
  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;
}

/* ─── CTA SECTION ────────────────────────────── */
