@charset "utf-8";

/* ═══════════════════════════════════════════════════
   DNEW DESIGN SYSTEM — style.css
   Font: Paperlogy (display) + Noto Sans KR (body)
   Ref: iconplanning.com + remo.re.kr
═══════════════════════════════════════════════════ */

/* ─── VARIABLES ───────────────────────────────── */
:root {
  --bg:             #ffffff;
  --dark:           #111111;
  --dark-surface:   #1a1a1a;
  --dark-border:    #333333;
  --text:           #111111;
  --text-sub:       #555555;
  --text-dark-sub:  #999999;
  --accent:         #006FF2;
  --accent-hover:   #005FFF;
  --border:         #e0e0e0;
  --font-display:   'Paperlogy', -apple-system, 'Malgun Gothic', sans-serif;
  --font-body:      'Noto Sans KR', -apple-system, 'Malgun Gothic', sans-serif;
}

/* ─── RESET & BASE ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0; font-family: var(--font-body), sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0; /* 폰트 로드 전 숨김 */
  transition: opacity .4s ease-out;
}

/* 폰트 로드 완료 후 본문 보이기 */
.fonts-ready body {
  opacity: 1;
}

em, i { font-style: normal; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

/* ─── CUSTOM CURSOR ───────────────────────────── */
.c-cursor {
  width: 10px; height: 10px;
  background: var(--dark);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, background .25s;
}
.c-cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(0,111,242,.45);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity .3s;
}
.c-cursor.is-hover { width: 32px; height: 32px; background: var(--accent); }
.c-cursor-ring.is-hover { opacity: 0; }

/* ─── CONTAINER ───────────────────────────────── */
.dnew-container {
  width: 100%;
  max-width: 180rem;
  margin: 0 auto;
  padding: 0 2vw; /* 가변 패딩 적용 */
}

.container-lg {
  max-width: 180rem !important;
  margin: 0 auto;
  padding: 0 2vw !important; /* 가변 패딩 적용 */
}

/* ─── HEADER ──────────────────────────────────── */
.header-N1 {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  width: 100%;
  height: 9rem; /* 평상시 높이 상향 */
  background: #ffffff;
  border-bottom: none;
  z-index: 2000;
  display: flex;
  align-items: center;
  transition: height .4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background .35s, box-shadow .35s;
}
.header-N1.is-scrolled {
  height: 7rem; /* 스크롤 시 높이 상향 */
  background: #ffffff;
  border-bottom: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06); /* 밑줄 대신 부드러운 그림자 */
}
.header-N1 .header-container {
  width: 100%;
  max-width: 180rem;
  margin: 0 auto;
  padding: 0 2vw !important;
}
.header-N1 .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.2rem;
}
.header-N1 .header-logo { cursor: pointer; flex-shrink: 0; }
.header-N1 .header-logo-image { height: 3.2rem; display: block; }

/* 데스크톱 네비 */
.header-N1 .header-nav { display: flex; flex: 1; justify-content: center; }
.header-N1 .header-nav-list {
  display: flex;
  align-items: center;
  gap: 3.2rem;
  list-style: none;
}
.header-N1 .header-nav-list a {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
.header-N1 .header-nav-list a:hover,
.header-N1 .header-nav-list a.active { 
  color: var(--accent); 
}

.header-N1 .header-cta {
  flex-shrink: 0;
  font-family: var(--font-display);
  background: var(--accent);
  color: #fff;
  padding: 1rem 2.4rem;
  border-radius: .5rem;
  font-weight: 600;
  font-size: 1.4rem;
  text-decoration: none;
  transition: background .25s;
}
.header-N1 .header-cta:hover { background: var(--accent-hover); }

/* 햄버거 — 데스크톱에서 숨김 */
.header-N1 .hamburger-btn { display: none; }

@media (max-width: 1100px) {
  .header-N1 .header-nav-list { gap: 2rem; }
  .header-N1 .header-nav-list a { font-size: 1.3rem; }
}

@media (max-width: 992px) {
  .header-N1 { height: 6rem; background: rgba(255,255,255,.97); border-bottom-color: var(--border); }
  .header-N1 .header-container { padding: 0 3.2rem; }
  .header-N1 .header-logo-image { height: 2.8rem; }
  .header-N1 .header-nav { display: none; }
  .header-N1 .header-cta { display: none; }
  .header-N1 .hamburger-btn { display: flex; }
}

/* ─── SECTION BASE ────────────────────────────── */
.dnew-section-light { background: var(--bg);   padding: 18rem 0; }
.dnew-section-dark  { background: var(--dark); padding: 18rem 0; color: #fff; }

.dnew-section-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-bottom: 5rem;
}
.dnew-section-label::before {
  content: '';
  display: block;
  width: 3rem; height: 2px;
}
.dnew-section-light .dnew-section-label         { color: var(--accent); }
.dnew-section-light .dnew-section-label::before { background: var(--accent); }
.dnew-section-dark  .dnew-section-label         { color: rgba(255,255,255,.4); }
.dnew-section-dark  .dnew-section-label::before { background: rgba(255,255,255,.3); }

.dnew-section-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 6vw, 8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.dnew-section-light .dnew-section-title { color: var(--text); }
.dnew-section-dark  .dnew-section-title { color: #fff; }

/* reveal animation wrapper — overflow:hidden 복구하여 깔끔한 마스킹 효과 제공 */
.rv-wrap { display: block; overflow: hidden; }
.rv      { display: block; will-change: transform; backface-visibility: hidden; -webkit-font-smoothing: antialiased; }

/* ─── HERO ────────────────────────────────────── */
.hero-N1 {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 7rem 0 10rem;  /* 가로 padding은 dnew-container가 담당 */
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.hero-N1 .hero-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-bottom: 3.2rem;
  overflow: hidden;
}
.hero-N1 .hero-label::before {
  content: '';
  display: block;
  width: 3rem; height: 2px;
  background: var(--accent);
}
.hero-N1 .hero-label-inner { display: block; }
.hero-N1 .hero-title {
  font-family: var(--font-display);
  font-size: clamp(6rem, 9vw, 13rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 5rem;
}
.hero-N1 .hero-title-line  { display: block; overflow: hidden; }
.hero-N1 .hero-title-inner { display: block; }
.hero-N1 .hero-accent      { color: var(--accent); }
.hero-N1 .hero-bottom {
  display: flex;
  align-items: center;
  gap: 3.2rem;
  flex-wrap: wrap;
}
.hero-N1 .hero-desc {
  font-size: 1.8rem;
  color: var(--text-sub);
  line-height: 1.7;
}
.hero-N1 .hero-cta {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--text);
  color: var(--text);
  padding: 1.4rem 3.2rem;
  border-radius: .5rem;
  font-size: 1.6rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color .4s cubic-bezier(.25,.46,.45,.94);
}
.hero-N1 .hero-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--text);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}
.hero-N1 .hero-cta span { position: relative; z-index: 1; }
.hero-N1 .hero-cta:hover { color: #fff; }
.hero-N1 .hero-cta:hover::before { transform: translateY(0); }
.hero-N1 .hero-scroll {
  position: absolute;
  bottom: 4rem; left: 6rem;
  font-size: 1.2rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.hero-N1 .hero-scroll::before {
  content: '';
  width: 4rem; height: 1px;
  background: var(--text-sub);
}

/* ─── PROBLEM SECTION ─────────────────────────── */
.problem-N2 { background: var(--dark); padding: 16rem 0; color: #fff !important; }
.problem-N2 * { color: inherit; }
.problem-N2 .dnew-section-label         { color: rgba(255,255,255,.4) !important; }
.problem-N2 .dnew-section-label::before { background: rgba(255,255,255,.3) !important; }
.problem-N2 .dnew-section-title         { color: #fff !important; }

.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.8rem;
  margin-top: 8rem;
}
.pain-card {
  border: 1.5px solid var(--dark-border);
  border-radius: .8rem;
  padding: 4rem;
  background: transparent;
  transition: border-color .3s, background-color .3s;
}
.pain-card:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.02); }
.pain-card.is-highlight:hover { border-color: var(--accent); background: rgba(0,111,242,0.08); }
.pain-card.is-highlight {
  border-color: var(--accent);
  background: rgba(0,111,242,0.06);
}
.pain-num {
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--accent);
  margin-bottom: 2rem;
}
.pain-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.2rem;
}
.pain-desc {
  font-size: 1.6rem;
  color: var(--text-dark-sub);
  line-height: 1.7;
}

/* ─── STATS SECTION ───────────────────────────── */
/* problem-N2와 stats-N4 모두 dark bg — 연속된 한 블록처럼 보이도록 stats top 0 */
.stats-N4 { padding-top: 0; }

.stats-divider {
  border: none;
  border-top: 1px solid var(--dark-border);
  margin-bottom: 6rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.stat-item {
  padding-right: 4rem;
  border-right: 1px solid var(--dark-border);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(8rem, 12vw, 17rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: .02em;
  color: #fff;
  display: flex;
  align-items: flex-start;
}
.stat-suffix { color: var(--accent); }
.stat-label {
  font-size: 1.6rem;
  color: var(--text-dark-sub);
  margin-top: 2rem;
  line-height: 1.5;
}
.stat-label small { font-size: 1.3rem; }

/* ─── SOLUTION SECTION ────────────────────────── */
.solution-N3 { background: var(--bg); padding: 16rem 0; }

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem 10rem;
  margin-top: 8rem;
}
.solution-item { border-top: 1px solid var(--border); padding-top: 3.2rem; }
.solution-num {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--accent);
  margin-bottom: 2rem;
}
.solution-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.solution-desc {
  font-size: 1.6rem;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ─── CHANNEL SECTION ─────────────────────────── */
.channel-N5 { background: var(--bg); padding: 0 0 16rem; }

.channel-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 8rem;
}
.channel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 5rem;
}
.channel-tag {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border: 1.5px solid var(--border);
  border-radius: .5rem;
  color: var(--text);
  transition: border-color .2s, color .2s;
}
.channel-tag:hover { border-color: var(--accent); color: var(--accent); }

/* cta-N6도 다크 섹션이므로 라벨 선 색상 지정 */
.cta-N6 .dnew-section-label::before { background: rgba(255,255,255,.3); }

/* ─── CTA SECTION ─────────────────────────────── */
.cta-N6 {
  background: var(--dark);
  padding: 16rem 0;
  text-align: center;
}
.cta-N6 .cta-title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 7vw, 10rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.035em;
  color: #fff;
  margin-bottom: 4rem;
}
.cta-N6 .cta-title .cta-accent { color: var(--accent); }
.cta-N6 .cta-sub {
  font-size: 1.8rem;
  color: var(--text-dark-sub);
  margin-bottom: 5rem;
}
.cta-N6 .cta-btn {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  padding: 1.8rem 5rem;
  border-radius: .5rem;
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .25s;
}
.cta-N6 .cta-btn:hover { background: var(--accent-hover); }

/* ─── CONTACT FORM ────────────────────────────── */
.contact-N15 { background: var(--dark); padding: 0 0 16rem; }

/* ─── FOOTER ──────────────────────────────────── */
.th-layout-footer {
  background: var(--dark);
  border-top: 1px solid var(--dark-border);
  padding: 4rem 6rem;
}

/* ─── INLINE GRID HELPERS ─────────────────────── */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; }
.grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1200px) {
  .dnew-container       { padding: 0 2rem; }
  .hero-N1              { padding: 7rem 0 8rem; }
  .hero-N1 .hero-scroll { left: 4rem; }
}
@media (max-width: 992px) {
  .dnew-section-light,
  .dnew-section-dark,
  .dnew-section-light.channel-N5,
  .problem-N2, .stats-N4,
  .solution-N3, .cta-N6 { padding-top: 10rem; padding-bottom: 10rem; }

  .pain-grid     { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: 1fr; gap: 4rem; }
  .stat-item     { border-right: none; border-bottom: 1px solid var(--dark-border); padding: 0 0 4rem; }
  .stat-item:last-child { border-bottom: none; }
  .solution-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .dnew-container { padding: 0 2rem; }
  .hero-N1        { padding: 6rem 0 6rem; }
  .hero-N1 .hero-scroll { display: none; }
  body { cursor: auto; }
  .c-cursor, .c-cursor-ring { display: none; }
  .grid-2col { grid-template-columns: 1fr; }
  .grid-3col { grid-template-columns: 1fr; }
  .contact-form-grid-2 { grid-template-columns: 1fr !important; }
  .pricing-grid-3 { grid-template-columns: 1fr !important; }
  .effect-grid-2  { grid-template-columns: 1fr !important; }
}
/* ─── PORTFOLIO GATE MODAL ─────────────────────── */
.portfolio-gate-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: all .4s cubic-bezier(.25, .46, .45, .94);
}
.portfolio-gate-modal.active {
  opacity: 1; pointer-events: auto; visibility: visible;
}
.portfolio-gate-dim {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(10px);
}
.portfolio-gate-content {
  position: relative; z-index: 10;
  background: #fff; width: 100%; max-width: 48rem;
  padding: 6rem 4rem; border-radius: 1.2rem;
  box-shadow: 0 4rem 10rem rgba(0, 0, 0, .3);
  transform: translateY(3rem); opacity: 0;
  transition: all .5s cubic-bezier(.25, .46, .45, .94) .1s;
}
.portfolio-gate-modal.active .portfolio-gate-content {
  transform: translateY(0); opacity: 1;
}
.close-gate-btn {
  position: absolute; top: 2rem; right: 2rem;
  background: none; border: none; font-size: 3.2rem; line-height: 1;
  color: var(--text-sub); cursor: pointer; transition: color .2s;
}
.close-gate-btn:hover { color: var(--text); }

.gate-header { text-align: center; margin-bottom: 4rem; }
.gate-logo { margin-bottom: 2rem; }
.gate-logo img { height: 2.8rem; }
.gate-title { font-size: 2.4rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; }
.gate-subtitle { font-size: 1.4rem; color: var(--text-sub); line-height: 1.6; }

.gate-form { display: flex; flex-direction: column; gap: 2.4rem; }
.gate-input-group { display: flex; flex-direction: column; gap: .8rem; }
.gate-input-group label { font-size: 1.4rem; font-weight: 600; color: var(--text); }
.gate-input-group input {
  width: 100%; height: 5.4rem; padding: 0 1.6rem;
  border: 1.5px solid var(--border); border-radius: .4rem;
  font-size: 1.5rem; color: var(--text); background: #fdfdfd;
  transition: border-color .2s, background .2s;
}
.gate-input-group input:focus { border-color: var(--accent); background: #fff; outline: none; }
.gate-error-msg { font-size: 1.2rem; color: #ff3b30; display: none; margin-top: .4rem; }
.gate-error-msg.active { display: block; }

.gate-submit-btn {
  width: 100%; height: 6rem; background: var(--accent); color: #fff;
  border: none; border-radius: .4rem; font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700; cursor: pointer;
  transition: background .25s, transform .2s;
  margin-top: 1.6rem;
}
.gate-submit-btn:hover { background: var(--accent-hover); }
.gate-submit-btn:active { transform: scale(.98); }

@media (max-width: 576px) {
  .portfolio-gate-content { padding: 5rem 2.4rem; margin: 0 2rem; }
  .gate-title { font-size: 2.1rem; }
}
