/* ============================================
   두루로지스 v2 — 퍼블리싱 포트폴리오 데모
   다크 톤 · 대형 타이포 · 타임라인 레이아웃
   순수 CSS, 프레임워크 미사용
   ============================================ */

:root {
  --bg: #10161d;         /* 딥 차콜 배경 */
  --bg-soft: #171f28;    /* 섹션 구분용 살짝 밝은 면 */
  --line: #2a3541;       /* 보더 */
  --text: #c8d2dc;       /* 본문 */
  --head: #f2f5f8;       /* 제목 */
  --dim: #7d8a97;        /* 보조 텍스트 */
  --accent: #f5a524;     /* 세이프티 앰버 */
  --font: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  word-break: keep-all;
}

.wrap {
  width: min(1040px, 90%);
  margin: 0 auto;
}

h1, h2, h3 { color: var(--head); line-height: 1.25; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- 섹션 공통 타이틀: 영문 라벨 + 국문 부제 ---------- */
.sec-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sec-title em {
  font-style: normal;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--head);
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-solid {
  background: var(--accent);
  color: #17130a;
}
.btn-solid:hover { background: #ffbb45; }
.btn-line {
  border-color: var(--line);
  color: var(--head);
}
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 18px 38px; font-size: 1.05rem; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 22, 29, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.logo {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--head);
  text-decoration: none;
}
.logo span { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--accent); }
.main-nav .nav-cta {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: 8px 18px;
}
.main-nav .nav-cta:hover { background: var(--accent); color: #17130a; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--head);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 히어로 ---------- */
.hero { padding: 110px 0 0; }
.hero-tag {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 26px;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 34em;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 90px; }

/* 흐르는 프로세스 티커 — 시그니처 요소 */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: tickerMove 26s linear infinite;
  color: var(--dim);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}
@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

/* ---------- 수치 스트립 ---------- */
.stats { padding: 70px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 8px 26px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--head);
}
.stat .unit {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-left: 3px;
}
.stat p { color: var(--dim); font-size: 0.88rem; margin-top: 6px; }

/* ---------- 서비스: 넘버링 가로 행 ---------- */
.services { padding: 96px 0; background: var(--bg-soft); }
.service-rows { border-top: 1px solid var(--line); }
.s-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.s-row:hover { background: rgba(245, 165, 36, 0.04); }
.s-no {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 6px;
}
.s-body h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 10px; }
.s-body p { max-width: 44em; }

/* ---------- 이용 절차: 세로 타임라인 ---------- */
.process { padding: 96px 0; }
.timeline {
  list-style: none;
  counter-reset: step;
  border-left: 1px solid var(--line);
  margin-left: 8px;
}
.timeline li {
  counter-increment: step;
  position: relative;
  padding: 0 0 48px 42px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: -21px;
  top: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
}
.timeline li:last-child::before {
  background: var(--accent);
  border-color: var(--accent);
  color: #17130a;
}
.timeline h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; padding-top: 7px; }
.timeline p { max-width: 40em; }

/* ---------- FAQ ---------- */
.faq { padding: 96px 0; background: var(--bg-soft); }
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item h3 { font-size: 1rem; }
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--head);
  text-align: left;
  transition: color 0.15s ease;
}
.acc-trigger:hover { color: var(--accent); }
.acc-icon {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-trigger[aria-expanded="true"] .acc-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.acc-panel { overflow: hidden; }
.acc-panel p {
  padding: 0 4px 24px;
  max-width: 46em;
}
.acc-panel.opening, .acc-panel.closing { transition: height 0.28s ease; }

/* ---------- 문의 ---------- */
.contact { padding: 110px 0; }
.contact-inner {
  border: 1px solid var(--line);
  padding: 70px 36px;
  text-align: center;
}
.contact-inner h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.contact-inner > p { margin-bottom: 32px; color: var(--text); }
.contact-sub { margin-top: 20px; font-size: 0.88rem; color: var(--dim); }

/* mailto CTA 대체 안내 표시 */
.demo-note {
  display: inline-block;
  padding: 16px 32px;
  border: 1.5px dashed var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.98rem;
}

/* ---------- 푸터 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 0.86rem;
  color: var(--dim);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--head);
  margin-bottom: 10px;
}
.footer-logo span { color: var(--accent); }
.footer-meta { line-height: 1.9; }
.footer-note { align-self: flex-end; }

/* ---------- 등장 애니메이션 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .acc-panel.opening, .acc-panel.closing { transition: none; }
}

/* ============================================
   반응형
   ============================================ */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 34px 0; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .s-row { grid-template-columns: 70px 1fr; }
}

@media (max-width: 640px) {
  .hero { padding-top: 72px; }
  .hero-actions { margin-bottom: 60px; }

  /* 모바일에서는 강제 줄바꿈을 풀고 강조 구절만 줄을 나눈다 */
  .hero h1 br { display: none; }
  .hero h1 .accent { display: block; margin-top: 0.15em; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 5%; font-size: 1.02rem; }
  .main-nav .nav-cta { margin: 10px 5% 0; text-align: center; }

  .stats { padding: 54px 0; }
  .stats-grid { grid-template-columns: 1fr; gap: 26px; }
  .stat { border-left: none; padding: 0; }

  .services, .process, .faq { padding: 68px 0; }
  .s-row { grid-template-columns: 1fr; gap: 8px; padding: 30px 0; }
  .footer-inner { flex-direction: column; }
  .footer-note { align-self: flex-start; }
}
