/* 고객용 첫 화면 · 포트폴리오 (관리자 화면과 별개의 가벼운 스타일) */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
:root {
  --bg: #fafaf7; --ink: #14181a; --muted: #636b66; --line: #e4e6e0; --accent: #23365c; --accent-ink: #fff; --soft: #f0f2ec;
  --ease: cubic-bezier(.2, .7, .2, 1); --gutter: clamp(20px, 5vw, 56px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.7; letter-spacing: -0.01em; word-break: keep-all; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* 상단 */
/* 상단 바 (홈): 배경 없이 히어로 위에 얹힌다 */
.hd.hd--over { position: absolute; top: 0; left: 0; right: 0; z-index: 20; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; color: var(--accent); }
.hd.hd--over .logo, .hd.hd--over nav a:not(.btn) { color: var(--accent); }
.hd.hd--over .logo i { background: var(--accent); color: #fff; }
.hd.hd--over .btn--primary { background: var(--accent); color: #fff; }
.hd { position: relative; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hd__in { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .08em; font-size: 14px; }
.logo i { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 12px; letter-spacing: -0.02em; }
.hd nav { display: flex; align-items: center; gap: 30px; font-size: 14px; color: var(--muted); }
.hd nav a:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid transparent; transition: transform .35s var(--ease), background .3s, border-color .3s; cursor: pointer; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { transform: translateY(-2px); background: #17392e; }
.btn--ghost { border-color: var(--line); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 13px; }

/* 히어로 */
.hero { padding: clamp(72px, 11vw, 150px) 0 clamp(48px, 7vw, 90px); }
/* ── 히어로 (밝은 빛 배경 + 실제 샘플 창 겹침) ──
   옅은 빛 번짐 배경, 남색 글자, 실제 샘플 페이지를 브라우저 창으로 겹쳐 보여 준다. 글자 그라데이션·유리 카드는 쓰지 않는다. */
.hero.hero--studio {
  --ink-h: #1c2c4c; --muted-h: #5b6478; --coral: #ff7043; --line-h: rgba(28,44,76,.14);
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(104px, 14vh, 136px) 0 clamp(40px, 6vh, 64px); color: var(--ink-h);
  background:
    radial-gradient(55% 60% at 88% 12%, #e4e8ff 0%, rgba(228,232,255,0) 70%),
    radial-gradient(45% 50% at 0% 100%, #fde9e2 0%, rgba(253,233,226,0) 70%),
    #f6f7fb;
}
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(28px, 4vw, 64px); width: 100%; }

.hero.hero--studio .studio__kicker { margin: 0; font-size: 14px; font-weight: 700; color: var(--muted-h); }
.hero.hero--studio .studio__title { margin: 14px 0 0; max-width: none; font-size: clamp(40px, 5.6vw, 78px); line-height: 1.12; letter-spacing: -.045em; font-weight: 900; color: var(--ink-h); }
.studio__title span { display: block; }
.studio__hl { color: var(--coral); }
.hero.hero--studio .studio__lead { margin: 22px 0 0; max-width: 26em; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.7; color: var(--muted-h); }
.studio__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: clamp(28px, 3.6vw, 40px); }
.studio__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 30px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 16px; font-weight: 800; box-shadow: 0 12px 28px rgba(255,112,67,.28); }
.studio__btn span { transition: transform .3s var(--ease); }
.studio__btn:hover span { transform: translateX(4px); }
.studio__link { font-size: 15px; font-weight: 700; color: var(--ink-h); text-decoration: underline; text-underline-offset: 5px; }
.studio__btn:focus-visible, .studio__link:focus-visible { outline: 2px solid var(--ink-h); outline-offset: 4px; }

/* 떠 있는 샘플 창 3개: 실제 샘플 페이지를 1280px 화면 그대로 띄우고 축소한다 (누를 수 없음) */
.studio__stage { position: relative; height: clamp(360px, 46vw, 520px); }
.studio__win { position: absolute; width: var(--w); border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 30px 60px rgba(28,44,76,.18), 0 0 0 1px rgba(28,44,76,.08); }
.studio__bar { height: 22px; background: #eef0f6; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.studio__bar::before, .studio__bar::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #c9cdd9; }
.studio__view { position: relative; width: 100%; aspect-ratio: 16 / 11; overflow: hidden; background: #fff; }
.studio__view iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 880px; border: 0; transform: scale(var(--k)); transform-origin: 0 0; pointer-events: none; }
.studio__win--a { --w: 380px; --k: .297; left: 4%; top: 6%; transform: rotate(-3deg); z-index: 2; }
.studio__win--b { --w: 330px; --k: .258; right: 0; top: 0; transform: rotate(3deg); z-index: 1; }
.studio__win--c { --w: 300px; --k: .234; right: 8%; bottom: 0; transform: rotate(-1.5deg); z-index: 3; }

/* 아래 세 가지 */
.studio__feat { display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(40px, 6vh, 64px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-h); }
.studio__feat li { padding: 16px 16px 0 0; font-size: 14px; font-weight: 700; color: var(--ink-h); }
.studio__feat li + li { padding-left: 16px; border-left: 1px solid var(--line-h); }

@media (max-width: 980px) {
  .studio { grid-template-columns: 1fr; }
  .studio__stage { height: 380px; max-width: 620px; width: 100%; }
}
/* 모바일 히어로: 참고 구성 그대로 (연보라 배경, 가운데 정렬, 보라→코랄 제목, 코랄 알약 버튼, 가운데 큰 휴대폰, 양옆 샘플 창, 아래 흰 알약 띠). 이름과 문구는 우리 것. */
@media (max-width: 640px) {
  .hero.hero--studio {
    padding: 84px 20px 40px; justify-content: flex-start;
    background:
      radial-gradient(60% 34% at 92% 6%, #8fc0f8 0%, rgba(143,192,248,0) 72%),
      radial-gradient(70% 36% at 0% 46%, #a8d0fa 0%, rgba(168,208,250,0) 72%),
      radial-gradient(80% 30% at 70% 96%, #b9b8f6 0%, rgba(185,184,246,0) 74%),
      radial-gradient(50% 24% at 12% 2%, #ffffff 0%, rgba(255,255,255,0) 72%),
      linear-gradient(176deg, #f3f8ff 0%, #d6e7fd 34%, #e5ecff 60%, #cfd0f8 86%, #eef0ff 100%);
  }
  .studio { grid-template-columns: 1fr; gap: 0; text-align: center; }
  .studio__copy { display: flex; flex-direction: column; align-items: center; }
  .hero.hero--studio .studio__kicker { font-size: 14px; font-weight: 600; color: #6b7290; }
  .hero.hero--studio .studio__title { font-size: clamp(36px, 10.6vw, 46px); line-height: 1.16; letter-spacing: -.035em; font-weight: 700; margin-top: 14px; color: #14162a; }
  .studio__title span { display: block; }
  .studio__hl {
    background: linear-gradient(90deg, #6c4cf2 0%, #c35bd2 52%, #ff6b4a 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  }
  .hero.hero--studio .studio__lead { font-size: 15px; line-height: 1.6; font-weight: 400; color: #6b7290; margin-top: 16px; max-width: 20em; }
  .studio__cta { width: 100%; flex-direction: column; align-items: center; gap: 12px; margin-top: 24px; }
  .studio__btn { width: 84%; min-height: 58px; justify-content: center; font-size: 17px; background: linear-gradient(90deg, #ff7a3d 0%, #ff5a3c 100%); box-shadow: 0 14px 32px rgba(255,90,60,.35); }
  .studio__link { font-size: 14px; color: #14162a; }

  /* 무대: 가운데 휴대폰, 양옆 샘플 창 */
  .studio__stage { height: 500px; width: 100%; margin-top: 30px; }
  .studio__win--a { --w: 236px; --k: .605; left: 50%; right: auto; margin-left: -118px; top: 14px; z-index: 3; border-radius: 36px; box-shadow: 0 34px 60px rgba(40,46,110,.28), 0 0 0 9px #0f1424; transform: rotate(0deg); }
  .studio__win--a .studio__bar { display: none; }
  .studio__win--a .studio__view { aspect-ratio: 390 / 780; }
  .studio__win--a .studio__view iframe { width: 390px; height: 780px; transform: scale(var(--k)); }
  .studio__win--b { --w: 176px; --k: .1375; left: -4px; right: auto; top: 52px; border-radius: 14px; transform: rotate(-5deg); z-index: 2; box-shadow: 0 18px 40px rgba(40,46,110,.20), 0 0 0 1px rgba(40,46,110,.08); }
  .studio__win--c { --w: 176px; --k: .1375; right: -4px; left: auto; top: auto; bottom: 26px; border-radius: 14px; transform: rotate(4deg); z-index: 2; box-shadow: 0 18px 40px rgba(40,46,110,.20), 0 0 0 1px rgba(40,46,110,.08); }

  /* 아래 흰 알약 띠 */
  .studio__feat { margin-top: 30px; border-top: 0; background: #fff; border-radius: 999px; box-shadow: 0 14px 36px rgba(40,46,110,.12); padding: 6px 4px; }
  .studio__feat li { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 13px; font-weight: 800; color: #14162a; padding: 12px 6px; line-height: 1.3; }
  .studio__feat li b { display: block; font-size: 13px; font-weight: 800; color: #14162a; }
  .studio__feat li small { display: block; font-size: 11px; font-weight: 500; color: #7a8099; letter-spacing: -.01em; }
  .studio__feat li + li { padding-left: 6px; border-left: 1px solid #e3e6f2; }
  .studio__feat li:first-child { padding-left: 14px; }
}
/* 모바일 디테일: 배경 빛 층과 곡선 빛줄기, 버튼 입체감과 화살표 원 */
@media (max-width: 640px) {
  .hero.hero--studio { isolation: isolate; }
  .hero.hero--studio::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
      radial-gradient(40% 20% at 84% 34%, rgba(255,255,255,.75), rgba(255,255,255,0) 70%),
      radial-gradient(46% 22% at 6% 74%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%),
      radial-gradient(60% 18% at 46% 60%, rgba(255,255,255,.5), rgba(255,255,255,0) 70%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 375 800' preserveAspectRatio='none'%3E%3Cpath d='M-20 210 C 90 120, 210 330, 400 170' stroke='%23857cf0' stroke-opacity='.32' stroke-width='1.6' fill='none'/%3E%3Cpath d='M-20 236 C 100 150, 220 360, 400 200' stroke='%23ffffff' stroke-opacity='.7' stroke-width='1' fill='none'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  }
  /* 유리 질감의 떠 있는 사각형 (HTML의 studio__glass 세 개) */
  .studio__glass { position: absolute; z-index: -1; pointer-events: none; display: block; border-radius: 16px; background: linear-gradient(150deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.22) 60%, rgba(255,255,255,.4) 100%); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 14px 30px rgba(80,120,210,.16), inset 0 1px 0 #fff; }
  .studio__glass--1 { width: 84px; height: 66px; right: 14%; top: 13%; transform: rotate(-12deg); }
  .studio__glass--2 { width: 80px; height: 66px; left: 8%; top: 40%; transform: rotate(-10deg); }
  .studio__glass--3 { width: 116px; height: 96px; right: 6%; bottom: 36%; transform: rotate(24deg); border-radius: 22px; }
  .hero.hero--studio::after { display: none; }
  .studio__btn {
    position: relative; min-height: 54px; padding: 0 8px 0 26px; justify-content: space-between; gap: 14px;
    background: linear-gradient(180deg, #ff7a48 0%, #ff5f3a 100%);
    box-shadow: 0 10px 24px rgba(255,95,58,.28);
  }
  .studio__glass { display: none; }
  .studio__btn span {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.95); color: #ff5f3a; font-size: 15px; font-weight: 700;
  }
  .studio__link { position: relative; padding-bottom: 2px; }
}

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.hero h1, .sec__head h2, .cta h2 { text-wrap: balance; }
.hero h1 { font-size: clamp(38px, 6.4vw, 84px); line-height: 1.16; letter-spacing: -0.045em; font-weight: 800; margin: 22px 0 28px; max-width: 12em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 33em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* 섹션 */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec--soft { background: var(--soft); }
.sec__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.sec__head h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.25; letter-spacing: -0.04em; font-weight: 800; margin-top: 12px; }
.sec__head p { color: var(--muted); max-width: 28em; }

/* 포트폴리오 카드 */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 20px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .25s; }
.tab:hover { border-color: var(--ink); }
.tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px 24px; }
.pf-grid--home { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.pf { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.pf:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(20, 24, 26, .12); }
.pf[hidden] { display: none; }
.pf__thumb { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--soft); border-bottom: 1px solid var(--line); }
.pf__thumb iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 880px; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; }
.pf__thumb::after { content: "크게 보기 ↗"; position: absolute; right: 14px; bottom: 14px; background: rgba(20, 24, 26, .86); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: all .35s var(--ease); }
.pf:hover .pf__thumb::after { opacity: 1; transform: none; }
.pf__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pf__kind { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.pf h3 { font-size: 22px; letter-spacing: -0.03em; font-weight: 800; }
.pf__concept { color: var(--muted); font-size: 14px; line-height: 1.65; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 12px; padding: 5px 11px; border-radius: 999px; background: var(--soft); color: #46504a; }
.pf__act { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.pf__act .btn { flex: 1; min-height: 46px; font-size: 14px; padding: 0 14px; }
.notice { margin-top: 28px; font-size: 13px; color: var(--muted); }

/* 진행 방식 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { padding: 28px 24px 8px 0; position: relative; }
.steps li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.steps span { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.steps h3 { font-size: 20px; margin: 12px 0 8px; font-weight: 700; letter-spacing: -0.02em; }
.steps p { color: var(--muted); font-size: 15px; }

/* 하단 CTA */
.cta { background: #14181a; color: #fff; border-radius: 28px; padding: clamp(40px, 6vw, 80px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.25; letter-spacing: -0.04em; font-weight: 800; max-width: 14em; }
.cta p { color: #aab3ad; margin-top: 14px; }
.cta .btn--primary { background: #fff; color: #14181a; }
.cta .btn--primary:hover { background: #e9ece6; }
.ft { padding: 40px 0 60px; color: var(--muted); font-size: 13px; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .hd nav a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .pf-grid, .pf-grid--home { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hd__in { height: 62px; }
}

/* 포트폴리오: 미리보기 화면 크기(PC / 모바일) 전환 */
.pf-toolbar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; margin-bottom: 32px; }
.pf-toolbar .tabs { margin-bottom: 0; }
.viewseg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); flex: none; }
.viewseg button { appearance: none; border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.viewseg button:hover { color: var(--ink); }
.viewseg button.is-active { background: var(--ink); color: #fff; }
.pf-grid.is-mobile { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.pf-grid.is-mobile .pf__thumb { aspect-ratio: 390 / 760; margin: 22px 26px 6px; border: 6px solid #14181a; border-radius: 28px; background: #fff; }
.pf-grid.is-mobile .pf__thumb iframe { width: 390px; height: 760px; }
.pf-grid.is-mobile .pf__thumb::after { display: none; }
.pf__mlink { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--accent); padding: 2px 0; }
.pf__mlink:hover { text-decoration: underline; }
@media (max-width: 520px) { .viewseg { width: 100%; } .viewseg button { flex: 1; } .pf-grid.is-mobile { grid-template-columns: 1fr; } .pf-grid.is-mobile .pf__thumb { margin: 20px auto 6px; width: 250px; } }
/* 모바일 보기에서는 카드 폭이 좁으므로, 안쪽 여백과 버튼 글자를 줄여 버튼 글자가 두 줄로 꺾이지 않게 한다 */
.pf-grid.is-mobile .pf__body { padding: 18px 16px 20px; }
.pf-grid.is-mobile .pf__act { gap: 6px; }
.pf-grid.is-mobile .pf__act .btn { padding: 0 8px; font-size: 13px; white-space: nowrap; }
.pf-grid.is-mobile .pf h3 { font-size: 20px; }
