/* ══════════════════════════════════════════
   home.css — 홈 페이지 전용 스타일
   공통 스타일은 common.css 참조
══════════════════════════════════════════ */

/* ── Hero ── */
.s-hero {
  position: relative;
  width: 100%; height: 100vh;
  min-height: 680px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
#logo-layer {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 1; overflow: hidden;
}
.rain-logo { position: absolute; opacity: 0; will-change: transform, opacity; }
.rain-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
  opacity: 0.60;
}
#orb-canvas  { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
#spotlight   {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(600px circle at var(--mx,30%) var(--my,50%),
    rgba(var(--accent-rgb),.055) 0%, transparent 65%);
}
.hero-fade {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(0deg, var(--bg) 0%, transparent 100%);
  z-index: 3; pointer-events: none;
  transition: background .3s;
}
.hero-content {
  position: relative; z-index: 5;
  flex: 1; display: flex; align-items: center;
  padding: 0 var(--ph);
  max-width: var(--max-w); margin: 64px auto 0; width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0; transform: translateY(14px);
  animation: fadeUp .7s var(--ease-expo) .1s forwards;
}
.hero-eyebrow::after {
  content: ''; display: block;
  width: 40px; height: 1px;
  background: var(--accent); opacity: .6;
}
.hero-h1 {
  font-size: clamp(36px, 4.8vw, 68px);
  font-weight: 800; line-height: 1.1; letter-spacing: -.04em;
  opacity: 0; transform: translateY(18px);
  animation: fadeUp .8s var(--ease-expo) .2s forwards;
}
.hero-h1 .muted { color: var(--text-2); }
.hero-sub {
  margin-top: 30px;
  font-size: clamp(15px,1.4vw,18px); line-height: 1.9; color: var(--text-2);
  max-width: 520px;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp .7s var(--ease-expo) .36s forwards;
}

.hero-service-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 24px;
  opacity: 0; transform: translateY(14px);
  animation: fadeUp .7s var(--ease-expo) .44s forwards;
}
.hs-tag {
  font-size: 11px; font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  padding: 5px 12px;
  background: rgba(255,255,255,.03);
}
.hero-cta {
  display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap;
  opacity: 0; transform: translateY(14px);
  animation: fadeUp .7s var(--ease-expo) .56s forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.hero-strip {
  position: relative; z-index: 5;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 20px;
  padding: 14px var(--ph);
}
.strip-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); white-space: nowrap; flex-shrink: 0;
}

/* ── S2 Sub message ── */
.s-message {
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* 탕글드 플로우 캔버스 */
.tangled-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.38;
}
/* 텍스트 콘텐츠가 캔버스 위에 */
.s-message > .container {
  position: relative;
  z-index: 1;
}
.msg-heading {
  font-size: clamp(28px,3.5vw,52px); font-weight: 700;
  line-height: 1.4; letter-spacing: -.025em;
  max-width: 760px; margin: 0 auto 28px;
}
.msg-heading em { font-style: normal; color: var(--text-2); }
.msg-body {
  font-size: clamp(15px,1.4vw,18px); line-height: 2;
  color: var(--text-2); max-width: 600px; margin: 0 auto 20px;
}
.msg-resolve {
  font-size: clamp(16px,1.5vw,20px); line-height: 1.9;
  color: var(--text-2); max-width: 580px; margin: 0 auto;
}
.msg-resolve strong { color: var(--text); font-weight: 600; }

/* ── S3 What we do ── */
.s-what { background: var(--bg-2); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.big-heading {
  font-size: clamp(28px,3.2vw,50px); font-weight: 800;
  line-height: 1.25; letter-spacing: -.03em;
}
.big-heading em { font-style: normal; color: var(--accent); }
.body-block p { font-size: 16px; line-height: 2; color: var(--text-2); margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* ── S4 Problem ── */
.s-problem { background: var(--bg); }
.prob-heading {
  font-size: clamp(26px,3vw,46px); font-weight: 800;
  line-height: 1.25; letter-spacing: -.03em; margin-bottom: 20px;
}
.prob-heading em { font-style: normal; color: var(--accent); }
.prob-sub { font-size: 16px; line-height: 1.9; color: var(--text-2); margin-bottom: 20px; }
.prob-list { list-style: none; }
.prob-list li {
  padding: 18px 0; border-bottom: 1px solid var(--border);
  font-size: 15px; line-height: 1.7; color: var(--text-2);
  display: flex; gap: 12px; align-items: flex-start;
}
.prob-list li::before { content: '→'; color: var(--accent); font-size: 13px; flex-shrink: 0; margin-top: 3px; }
.prob-resolve { font-size: clamp(22px,2.5vw,38px); font-weight: 700; line-height: 1.4; letter-spacing: -.025em; }
.prob-resolve em { font-style: normal; color: var(--accent); }

/* ── S5 Philosophy ── */
.s-philosophy { background: var(--bg-2); text-align: center; }
.phil-heading {
  font-size: clamp(26px,3vw,46px); font-weight: 800;
  line-height: 1.25; letter-spacing: -.03em;
  max-width: 700px; margin: 0 auto 36px;
}
.phil-heading em { font-style: normal; color: var(--text-2); }
.phil-cards {
  display: grid; grid-template-columns: repeat(3,1fr);
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; max-width: 860px; margin: 0 auto 36px;
}
.phil-card { padding: 28px 24px; border-right: 1px solid var(--border); text-align: left; }
.phil-card:last-child { border-right: none; }
.phil-card-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.phil-card-text { font-size: 14px; line-height: 1.7; color: var(--text-2); }
.phil-close { font-size: clamp(15px,1.4vw,18px); line-height: 2; color: var(--text-2); max-width: 540px; margin: 0 auto; }
.phil-close strong { color: var(--text); font-weight: 600; }

/* ── S6 Service intro ── */
.s-service-intro { background: var(--bg); text-align: center; }
.si-heading { font-size: clamp(26px,3.2vw,48px); font-weight: 800; line-height: 1.28; letter-spacing: -.035em; max-width: 800px; margin: 0 auto 20px; }
.si-heading .muted { color: var(--text-2); }
.si-sub { font-size: clamp(15px,1.4vw,19px); line-height: 1.9; color: var(--text-2); max-width: 580px; margin: 0 auto; }
.si-sub strong { color: var(--text); font-weight: 600; }

/* ── S7 Work scope ── */
.s-scope { background: var(--bg-2); }
.scope-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; gap: 32px; }
.scope-note { font-size: 14px; line-height: 1.75; color: var(--text-2); max-width: 320px; text-align: right; }
.scope-list { border-top: 1px solid var(--border); }
.scope-item {
  position: relative;
  display: grid; grid-template-columns: 56px 1fr auto;
  gap: 24px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--border);
  cursor: none; overflow: hidden;
}
.scope-item::before {
  content: ''; position: absolute; inset: 0;
  background: var(--surface-2);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .4s cubic-bezier(.16,1,.3,1); z-index: 0;
}
.scope-item:hover::before { transform: scaleY(1); }
.scope-item > * { position: relative; z-index: 1; }
.scope-num { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--text-3); }
.scope-name { font-size: clamp(16px,1.5vw,21px); font-weight: 600; letter-spacing: -.015em; transition: color .3s; }
.scope-item:hover .scope-name { color: var(--accent); }
.scope-arrow { font-size: 18px; color: var(--accent); opacity: 0; transform: translateX(-10px); transition: opacity .3s, transform .35s var(--ease-expo); }
.scope-item:hover .scope-arrow { opacity: 1; transform: translateX(0); }

/* ── S8 Tools ── */
.s-tools { background: var(--bg); }
.tools-heading { font-size: clamp(24px,2.8vw,42px); font-weight: 700; line-height: 1.4; letter-spacing: -.025em; margin-bottom: 14px; max-width: 560px; }
.tools-heading em { font-style: normal; color: var(--accent); }
.tools-desc { font-size: 15px; line-height: 1.8; color: var(--text-2); margin-bottom: 40px; max-width: 480px; }
.tools-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.tools-footer { border-top: 1px solid var(--border); padding-top: 28px; font-size: 15px; line-height: 1.9; color: var(--text-2); max-width: 500px; }
.tools-footer strong { color: var(--text); font-weight: 600; }

/* ── S9 Trust ── */
.s-trust { background: var(--bg-2); text-align: center; }
.trust-heading { font-size: clamp(26px,3vw,44px); font-weight: 800; line-height: 1.25; letter-spacing: -.03em; max-width: 660px; margin: 0 auto 28px; }
.trust-heading em { font-style: normal; color: var(--text-2); }
.trust-body { font-size: clamp(15px,1.4vw,18px); line-height: 2; color: var(--text-2); max-width: 540px; margin: 0 auto 28px; }

/* ── S10 Closing ── */
.s-closing { background: var(--bg); text-align: center; }
.closing-h { font-size: clamp(26px,3.4vw,52px); font-weight: 800; line-height: 1.2; letter-spacing: -.035em; max-width: 800px; margin: 0 auto; }
.closing-h .muted { color: var(--text-2); }
.closing-h .hi { color: var(--accent); }
.closing-body { font-size: clamp(15px,1.4vw,18px); line-height: 2; color: var(--text-2); max-width: 560px; margin: 36px auto 0; }
.closing-body strong { color: var(--text); font-weight: 600; }

/* ── S11 CTA ── */
.s-cta { background: var(--bg-2); border-top: 1px solid var(--border); }
.cta-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.cta-heading { font-size: clamp(26px,3vw,46px); font-weight: 800; line-height: 1.28; letter-spacing: -.03em; margin-bottom: 18px; }
.cta-heading em { font-style: normal; color: var(--accent); }
.cta-sub { font-size: clamp(15px,1.4vw,18px); line-height: 1.85; color: var(--text-2); margin-bottom: 12px; }
.cta-note { font-size: 14px; line-height: 1.8; color: var(--text-3); margin-bottom: 40px; }
.cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ── Testimonials ── */
.reviews-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}
.reviews-heading {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.035em;
}
.reviews-heading em { font-style: normal; color: var(--accent); }
/* Slider wrapper replaces grid */
.reviews-slider-wrap {
  overflow: hidden;
  position: relative;
}
.rs-track {
  display: flex;
  gap: 20px;
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1);
  will-change: transform;
}
.rs-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}
.rs-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none;
  background: var(--border-2);
  cursor: pointer;
  transition: background .3s, transform .3s;
  padding: 0;
}
.rs-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}
/* keep legacy grid rule as fallback / compat */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 0 0 calc((100% - 40px) / 3);
  transition: border-color .3s, transform .4s var(--ease-expo);
}
.review-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
}
.review-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.review-quote {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  flex: 1;
  position: relative;
}
.review-quote::before {
  content: '"';
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  opacity: .25;
  position: absolute;
  top: -14px;
  left: -6px;
  font-family: Georgia, serif;
}
.review-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
  border: none;
}
.review-avatar svg { display: block; width: 40px; height: 40px; }
.review-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.review-role {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}
.review-metric {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-3);
  text-align: right;
  flex-shrink: 0;
  line-height: 1.5;
}
.review-metric strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}

/* ── 비교 섹션 ── */
.s-compare { background: var(--bg-2); }
.compare-intro { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.compare-intro .eyebrow { justify-content: center; }
.compare-heading {
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 800; line-height: 1.2; letter-spacing: -.03em; margin-bottom: 14px;
}
.compare-heading em { font-style: normal; color: var(--accent); }
.compare-sub { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.9; color: var(--text-2); }

.compare-table {
  display: grid;
  grid-template-columns: 180px repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.ct-col-head {
  padding: 24px 20px;
  font-size: 13px; font-weight: 700;
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
}
.ct-col-head:not(:last-child) { border-right: 1px solid var(--border); }
.ct-col-head.label-col { align-items: flex-start; background: transparent; }
.ct-col-head.dolpha-col {
  background: rgba(158,255,0,0.06);
  border-bottom-color: rgba(158,255,0,0.2);
}
.ct-col-name { font-size: 14px; font-weight: 800; }
.ct-col-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3);
}
.ct-col-tag.accent { color: var(--accent); }

.ct-row {
  display: contents;
}
.ct-cell {
  padding: 16px 20px;
  font-size: 13px; line-height: 1.55;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.ct-row:last-child .ct-cell { border-bottom: none; }
.ct-cell:not(:last-child) { border-right: 1px solid var(--border); }
.ct-cell.label { color: var(--text-2); font-weight: 600; font-size: 13px; }
.ct-cell.center { justify-content: center; text-align: center; }
.ct-cell.dolpha-col { background: rgba(158,255,0,0.04); }
.ct-yes { color: var(--accent); font-weight: 700; }
.ct-no  { color: var(--text-3); }
.ct-mid { color: var(--text-2); }

/* ── 프로세스 미니 (index) ── */
.s-process-mini { background: var(--bg); }
.process-mini-intro { text-align: center; max-width: 560px; margin: 0 auto 56px; }
.process-mini-intro .eyebrow { justify-content: center; }
.process-mini-h {
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 800; line-height: 1.2; letter-spacing: -.03em; margin-bottom: 12px;
}
.process-mini-h em { font-style: normal; color: var(--accent); }
.process-mini-sub { font-size: 15px; line-height: 1.85; color: var(--text-2); }

.process-mini-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-mini-steps::before {
  content: '';
  position: absolute;
  top: 28px; left: calc(12.5% + 20px); right: calc(12.5% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(158,255,0,.2) 100%);
}
.pm-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 16px;
  position: relative; z-index: 1;
}
.pm-dot {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 16px rgba(158,255,0,0.2);
}
.pm-dot span {
  font-size: 13px; font-weight: 800; color: var(--accent);
}
.pm-title {
  font-size: 14px; font-weight: 700; margin-bottom: 8px; line-height: 1.3;
}
.pm-duration {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.pm-desc {
  font-size: 13px; line-height: 1.7; color: var(--text-2);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .review-card { flex: 0 0 calc((100% - 20px) / 2); }
  .reviews-grid { grid-template-columns: 1fr; max-width: 500px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .phil-cards { grid-template-columns: 1fr; }
  .phil-card { border-right: none; border-bottom: 1px solid var(--border); }
  .phil-card:last-child { border-bottom: none; }
  .scope-header { flex-direction: column; align-items: flex-start; }
  .scope-note { text-align: left; }
  .compare-table { grid-template-columns: 120px repeat(3, 1fr); }
  .ct-cell, .ct-col-head { padding: 12px 10px; font-size: 12px; }
  .process-mini-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-mini-steps::before { display: none; }
}
@media (max-width: 600px) {
  .review-card { flex: 0 0 100%; }
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn { width: 100%; max-width: 280px; }
}
