/* sellbright landing — scroll-story sections */

/* ===================================================================
   SECTION 02 — 문제 (Problem)
   =================================================================== */
.s-problem { padding: clamp(120px, 18vh, 200px) 0; background: var(--bg); text-align: center; }
.s-problem .big { font-weight: 800; letter-spacing: -0.04em; line-height: 1.12; font-size: clamp(32px, 6vw, 76px); }
.s-problem .big .muted { color: var(--ink-ghost); }
.s-problem .big .pop { color: var(--ink); }
.s-problem .lede { margin: 0 auto; }
.s-problem .gap { height: clamp(40px, 8vh, 96px); }

/* product field — sea of gray, one chosen */
.field-grid { margin: clamp(48px,8vh,90px) auto 0; width: min(1000px, 94vw);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 860px) { .field-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .field-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
/* 3D flip card: empty (gray strip) front flips over to reveal the product image */
.pcard { aspect-ratio: 1; position: relative; border-radius: 14px;
  -webkit-perspective: 700px; perspective: 700px;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.pcard .flip { position: absolute; inset: 0; border-radius: inherit;
  -webkit-transform-style: preserve-3d; transform-style: preserve-3d;
  transition: transform .6s var(--ease-out); }
.pcard.flipped .flip { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); }
.pcard .face { position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-soft);
  -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.pcard .face.back { -webkit-transform: rotateY(180deg); transform: rotateY(180deg);
  background-size: cover; background-position: center; }
.pcard .strip { position: absolute; inset: 10px 10px 28px; border-radius: 7px;
  background: repeating-linear-gradient(45deg, #eef1f6 0 7px, #f3f5f9 7px 14px); }
/* starred center tile — emphasized once it has flipped to its image */
.pcard.chosen .face.back { border-color: rgba(37,99,235,0.6); }
.pcard.chosen.flipped { transform: scale(1.06); z-index: 3;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.14), 0 22px 50px -22px rgba(37,99,235,0.55); }
.pcard .badge { position: absolute; right: 8px; top: 8px; z-index: 2;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-size: 12px; line-height: 1;
  box-shadow: 0 2px 8px rgba(37,99,235,0.5); }
@media (prefers-reduced-motion: reduce) { .pcard, .pcard .flip { transition: none; } }

/* ===================================================================
   SECTION 03 — AI Factory (pipeline)
   =================================================================== */
.s-factory { padding: clamp(110px,16vh,180px) 0; background: var(--bg-soft);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.s-head { text-align: center; max-width: 720px; margin: 0 auto clamp(56px,8vh,90px); }
.s-head .eb { margin-bottom: 14px; }
.s-head h2 { margin: 0 0 16px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; font-size: clamp(28px,4vw,50px); }
.s-head p { margin: 0; font-size: clamp(15px,1.6vw,18px); line-height: 1.7; color: var(--ink-soft); }

.pipeline { width: min(1120px, 94vw); margin: 0 auto; display: flex; align-items: stretch; gap: 0;
  overflow-x: auto; padding: 8px 4px 18px; scrollbar-width: thin; }
.pnode { flex: 1 0 150px; min-width: 150px; position: relative; display: flex; flex-direction: column; }
.pnode .conn { position: absolute; top: 38px; right: -1px; width: 100%; height: 2px; z-index: 0; }
.pnode .conn::before { content: ""; position: absolute; inset: 0; background: var(--line-2); }
.pnode .conn::after { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .6s var(--ease-out); }
.pnode.lit .conn::after { width: 100%; }
.pnode:last-child .conn { display: none; }
.pcell { position: relative; z-index: 1; margin: 0 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 16px; height: 100%; display: flex; flex-direction: column; gap: 8px;
  transition: all .5s var(--ease-out); }
.pnode.lit .pcell { border-color: rgba(37,99,235,0.35); box-shadow: 0 14px 36px -20px rgba(37,99,235,0.5); }
.pcell .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-faint); transition: all .5s; }
.pnode.lit .pcell .ic { background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(124,58,237,0.12));
  border-color: rgba(37,99,235,0.3); color: var(--primary); }
.pcell .ic svg { width: 18px; height: 18px; }
.pcell .t { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.pcell .mono { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.pnode.io .pcell { background: var(--ink); border-color: var(--ink); }
.pnode.io .pcell .t { color: #fff; } .pnode.io .pcell .mono { color: rgba(255,255,255,0.55); }
.pnode.io .pcell .ic { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: #fff; }

/* ===================================================================
   SECTION 04 — AI 직원 (agents)
   =================================================================== */
.s-agents { padding: clamp(110px,16vh,180px) 0; background: var(--bg); }
.agent-grid { width: min(1120px, 94vw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.agent { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 22px; position: relative;
  overflow: hidden; transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s; cursor: default; }
.agent:hover { transform: translateY(-4px); border-color: rgba(37,99,235,0.3);
  box-shadow: 0 24px 50px -28px rgba(37,99,235,0.45); }
.agent .av { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(124,58,237,0.1)); color: var(--primary); margin-bottom: 16px; }
.agent .av svg { width: 22px; height: 22px; }
.agent .role { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.agent .desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin-top: 5px; min-height: 44px; }
.agent .status { margin-top: 16px; display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.agent .status .led { width: 7px; height: 7px; border-radius: 50%; background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22,163,74,0.5); animation: led 2s infinite; }
@keyframes led { 70% { box-shadow: 0 0 0 6px rgba(22,163,74,0); } }
.agent .status .think { color: var(--primary); display: none; }
.agent:hover .status .work { display: none; }
.agent:hover .status .think { display: inline; }
.agent:hover .status .led { background: var(--primary); animation: ledb 1s infinite; }
@keyframes ledb { 50% { opacity: 0.3; } }
.agent .caret-think::after { content: "▋"; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ===================================================================
   SECTION 05 — Before / After
   =================================================================== */
.s-ba { padding: clamp(110px,16vh,180px) 0; background: var(--bg-soft); border-top: 1px solid var(--line); }
.ba-stage { width: min(960px, 94vw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px,3vw,36px); align-items: stretch; }
.ba-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; }
.ba-card.before { background: var(--bg-soft); }
.ba-card .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }
.ba-card .shot { aspect-ratio: 1 / 1; border-radius: 12px; border: 1px solid var(--line);
  background: repeating-linear-gradient(45deg, #eef1f6 0 9px, #f5f6f9 9px 18px); margin-bottom: 18px;
  display: grid; place-items: center; }
.ba-card .shot .ph-label { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); background: rgba(255,255,255,0.7); padding: 4px 9px; border-radius: 6px; }
.ba-card.after .shot { background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(124,58,237,0.08)); border-color: rgba(37,99,235,0.25); }
.ba-card .nm-before { font-weight: 700; font-size: clamp(18px,2.2vw,24px); color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--ink-ghost); }
.ba-card .nm-after { display: flex; flex-direction: column; gap: 3px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; font-size: clamp(18px,2.2vw,24px); }
.ba-card .keys { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ba-card .keys span { font-size: 11.5px; font-weight: 600; color: var(--primary-ink);
  background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.16); padding: 4px 9px; border-radius: 999px; }
.ba-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.ba-arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 12px 30px -10px rgba(37,99,235,0.6); }
.ba-arrow svg { width: 22px; height: 22px; }
.ba-metric { text-align: center; }
.ba-metric .v { font-family: var(--mono); font-weight: 800; font-size: clamp(22px,3vw,34px); }
.ba-metric.seo .v { color: var(--primary); } .ba-metric.ctr .v { color: #16a34a; }
.ba-metric .k { font-size: 11px; color: var(--ink-faint); font-weight: 600; letter-spacing: 0.04em; margin-top: 2px; }
@media (max-width: 760px) { .ba-stage { grid-template-columns: 1fr; } .ba-mid { flex-direction: row; } .ba-arrow { transform: rotate(90deg); } }

/* ===================================================================
   SECTION 06 — 사람 vs AI
   =================================================================== */
.s-versus { padding: clamp(110px,16vh,180px) 0; background: var(--bg); }
.vs-grid { width: min(1000px, 94vw); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; }
.vs-col { border: 1px solid var(--line); padding: 34px clamp(22px,3vw,40px); }
.vs-col.human { border-radius: 20px 0 0 20px; background: var(--bg-soft); }
.vs-col.ai { border-radius: 0 20px 20px 0; border-left: 0; background: #fff; position: relative; overflow: hidden; }
.vs-col.ai::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(37,99,235,0.06), transparent 60%); pointer-events: none; }
.vs-col .who { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; margin-bottom: 6px; }
.vs-col .who .badge { font-family: var(--mono); font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 999px; letter-spacing: 0.06em; }
.vs-col.human .badge { background: rgba(2,6,23,0.06); color: var(--ink-soft); }
.vs-col.ai .badge { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.vs-col .sub { font-size: 13px; color: var(--ink-faint); margin-bottom: 24px; }
.vs-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); position: relative; z-index: 1; }
.vs-row .k { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.vs-row .v { font-family: var(--mono); font-weight: 800; font-size: clamp(18px,2.4vw,26px); letter-spacing: -0.01em; text-align: right; }
.vs-col.human .vs-row .v { color: var(--ink-2); }
.vs-col.ai .vs-row .v { color: var(--primary); }
.vs-row .v .unit { font-size: 12px; color: var(--ink-faint); font-weight: 600; margin-left: 3px; }
.vs-mid { display: grid; place-items: center; width: 0; position: relative; z-index: 2; }
.vs-mid .vs-pill { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; box-shadow: 0 12px 30px -10px rgba(2,6,23,0.5); border: 3px solid #fff; }
@media (max-width: 680px) {
  .vs-grid { grid-template-columns: 1fr; }
  .vs-col.human { border-radius: 20px 20px 0 0; } .vs-col.ai { border-radius: 0 0 20px 20px; border-left: 1px solid var(--line); border-top: 0; }
  .vs-mid { width: auto; height: 0; } .vs-mid .vs-pill { box-shadow: 0 8px 20px -8px rgba(2,6,23,0.5); }
}

/* ===================================================================
   SECTION 07 — Final CTA (dark)
   =================================================================== */
.s-final { position: relative; background: var(--ink); color: #fff; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; padding: 100px 24px; overflow: hidden; text-align: center; }
.s-final .aura { position: absolute; width: 700px; height: 700px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(37,99,235,0.35), transparent 60%); filter: blur(40px); opacity: 0.6;
  top: 50%; left: 50%; transform: translate(-50%,-50%); }
.final-lines { position: relative; z-index: 2; height: clamp(130px, 24vh, 220px); width: min(1100px, 92vw); }
.fl { position: absolute; left: 50%; top: 50%; width: 100%; text-align: center;
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; font-size: clamp(30px,5.5vw,68px);
  opacity: 0; transform: translate(-50%,-50%) translateY(18px) scale(0.98); filter: blur(8px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), filter .8s var(--ease-out); }
.fl.in { opacity: 1; transform: translate(-50%,-50%) scale(1); filter: blur(0); }
.fl.fade { opacity: 0; transform: translate(-50%,-50%) translateY(-16px) scale(0.98); filter: blur(6px); }
.fl.q { color: rgba(255,255,255,0.5); }
.fl.punch { color: #fff; }
.fl .grad-text { background: linear-gradient(100deg, #60a5fa, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.final-cta { position: relative; z-index: 2; opacity: 0; transform: translateY(14px); transition: all .8s var(--ease-out) .3s; }
.final-cta.in { opacity: 1; transform: none; }
.final-cta a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 800; font-size: 17px; color: var(--ink); background: #fff; padding: 16px 28px; border-radius: 14px;
  box-shadow: 0 20px 50px -16px rgba(255,255,255,0.4); transition: transform .15s var(--ease-out), box-shadow .2s; }
.final-cta a:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 26px 60px -16px rgba(96,165,250,0.6); }
.final-cta a svg { width: 18px; height: 18px; }
.final-cta .micro { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,0.5); }

/* footer */
.foot { background: var(--ink); color: rgba(255,255,255,0.6); padding: 40px 24px; border-top: 1px solid rgba(255,255,255,0.08); }
.foot .row { width: min(1180px, 92vw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: #fff; }
.foot .brand .dot { width: 11px; height: 11px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.foot .links { display: flex; gap: 22px; font-size: 13.5px; }
.foot a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color .2s; }
.foot a:hover { color: #fff; }
.foot .copy { font-size: 12.5px; color: rgba(255,255,255,0.4); }
