*,
*::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 {
  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 PHONE MOCKUPS ─────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 32px;
  width: 100%;
  margin-top: 64px;
}

/* Phone shell */

/* Status bar */

/* Dynamic island */

/* Phone screen */

/* ── App Store UI ────────────────────────────── */

/* Suggestion list */

/* Search results */

/* ── Google Play UI ──────────────────────────── */

/* Guided search intent tabs */

/* Typing cursor */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 13px;
  background: #007aff;
  margin-left: 1px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* phone bottom bar */

/* ─── EVOLUTION (Before/After) ───────────────── */
.evolution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 48px 0;
  position: relative;
}
.evo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px 36px;
  position: relative;
}
.evo-card:first-child {
  border-radius: 14px 0 0 14px;
}
.evo-card:last-child {
  border-radius: 0 14px 14px 0;
  border-color: var(--brand-glow);
}
.evo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.evo-card:last-child .evo-icon {
  background: var(--brand-dim);
  border-color: rgba(224, 0, 77, 0.3);
}
.evo-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.evo-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: 16px;
}
.evo-card:last-child .evo-tag {
  color: var(--brand);
  background: var(--brand-dim);
}
.evo-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.evo-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);
}
.evo-card:last-child .evo-point {
  color: var(--brand);
}
.evo-arrow {
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── FRAMEWORK GRID (3-col) ─────────────────── */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 48px 0;
  background: var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.fw-card {
  background: var(--bg-card);
  padding: 36px 28px;
  transition: background 0.3s;
}
.fw-card:hover {
  background: var(--bg-card2);
}
.fw-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;
}
.fw-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 3px;
}
.fw-title {
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--text-secondary);
}
.fw-subtitle {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--text);
}
.fw-list {
  list-style: none;
}
.fw-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.fw-list li:last-child {
  border-bottom: none;
}
.fw-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--brand);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── PROBLEM CHECKLIST ───────────────────────── */
.problem-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  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-text strong {
  color: var(--text);
}
.problem-item:hover .problem-text {
  color: var(--text);
}

/* ─── 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.wide {
  grid-column: 1 / -1;
}
.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);
}
.services-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);
}

/* Mini viz – ranking bars */
.mini-rank {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
  margin-top: 12px;
}
.rank-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px 3px 0 0;
}
.rank-bar.top {
  background: var(--border-hover);
}
/* 랭킹 시각화 막대 높이 (시안 데이터 값) */
.mini-rank .rank-bar:nth-child(1) {
  height: 40%;
}
.mini-rank .rank-bar:nth-child(2) {
  height: 55%;
}
.mini-rank .rank-bar:nth-child(3) {
  height: 80%;
}
.mini-rank .rank-bar:nth-child(4) {
  height: 95%;
}
.mini-rank .rank-bar:nth-child(5) {
  height: 70%;
}
.mini-rank .rank-bar:nth-child(6) {
  height: 60%;
}
.service-card:hover .rank-bar {
  background: rgba(255, 255, 255, 0.1);
}
.service-card:hover .rank-bar.top {
  background: var(--brand);
}

/* mini keyword pill row */
.mini-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.mini-pill {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.55);
}
.mini-pill.hot {
  color: var(--brand);
  border-color: rgba(224, 0, 77, 0.3);
  background: var(--brand-dim);
}

/* ─── AI UPDATE CALLOUT ───────────────────────── */
#ai-update {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.ai-update-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.ai-update-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.8) 18%,
    rgba(0, 0, 0, 0.8) 82%,
    transparent 100%
  );
          mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.8) 18%,
    rgba(0, 0, 0, 0.8) 82%,
    transparent 100%
  );
  opacity: 0.2;
}
.ai-update-bg::after {
  content: '';
  position: absolute;
  inset: 6% 18% auto auto;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(224, 0, 77, 0.1) 0%,
    rgba(224, 0, 77, 0.03) 26%,
    transparent 68%
  );
  filter: blur(18px);
  opacity: 0.5;
}
#ai-update > * {
  position: relative;
  z-index: 1;
}

.ai-update-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.update-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s;
  position: relative;
  overflow: hidden;
}
.update-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(224, 0, 77, 0.06) 0%,
    transparent 28%,
    transparent 72%,
    rgba(255, 255, 255, 0.01) 100%
  );
  pointer-events: none;
}
.update-card:hover {
  border-color: rgba(224, 0, 77, 0.4);
  box-shadow:
    0 0 0 1px rgba(224, 0, 77, 0.14),
    0 0 36px rgba(224, 0, 77, 0.09);
  transform: translateY(-3px);
}
.update-platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-dim);
  border: 1px solid rgba(224, 0, 77, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.update-platform::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px var(--border-hover);
}
.update-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}
.update-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.update-impact {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.6;
}
.update-impact strong {
  color: var(--brand);
}

/* ─── PROCESS STEPS ───────────────────────────── */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 36px;
  align-items: start;
  transition: border-color 0.3s;
}
.step-card:hover {
  border-color: var(--brand-glow);
}
.step-num-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.step-circle {
  width: 48px;
  height: 48px;
  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: 14px;
  font-weight: 700;
  color: var(--brand);
  flex-shrink: 0;
}
.step-line {
  width: 1px;
  height: 100%;
  min-height: 40px;
  background: linear-gradient(to bottom, rgba(224, 0, 77, 0.3), transparent);
}
.step-card:last-child .step-line {
  display: none;
}
.step-body {
}
.step-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.step-tag {
  font-size: 12px;
  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;
}

/* ─── SOLUTIONS ───────────────────────────────── */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 48px;
}
.solution-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.3s,
    background 0.3s;
  min-height: 72px;
}
.solution-item:hover {
  border-color: var(--brand-glow);
  background: var(--bg-card2);
}

/* ─── CTA SECTION ─────────────────────────────── */
.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 50%,
    rgba(224, 0, 77, 0.08) 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.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.cta-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}
/* ─── FOOTER ──────────────────────────────────── */
footer {
  padding: 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;
  filter: brightness(0.7);
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

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

/* ≤767: evolution 화살표를 카드 stack 사이로 회전 (수평 → 수직) */
@media (max-width: 767px) {
  .evo-arrow {
    right: 50% !important;
    top: auto !important;
    bottom: -24px !important;
    transform: translateX(50%) rotate(90deg) !important;
  }

  .ai-update-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .update-card {
    padding: 22px 18px !important;
  }
}
