/* ============================================
   두루로지스 — 퍼블리싱 포트폴리오 데모
   순수 CSS, 프레임워크 미사용
   ============================================ */

:root {
  --ink: #1d2145;        /* 딥 네이비: 제목, 헤더 */
  --slate: #46516a;      /* 본문 텍스트 */
  --paper: #f6f7f5;      /* 배경 */
  --white: #ffffff;
  --line: #dfe3ea;       /* 구분선 */
  --accent: #3d63ff;     /* 시그널 그린: 도착/완료 신호 */
  --accent-soft: #e7ecff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 35, 59, 0.08);
  --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);
  color: var(--slate);
  background: var(--paper);
  line-height: 1.65;
  word-break: keep-all;
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

h1, h2, h3 { color: var(--ink); line-height: 1.3; }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section { padding: 96px 0; }

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 44px;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: #2a3060; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost {
  color: var(--ink);
  border: 1.5px solid var(--line);
  background: var(--white);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }

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

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 245, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark { width: 26px; height: 26px; color: var(--ink); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--slate);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav .nav-cta {
  background: var(--accent-soft);
  color: #2946c9;
  padding: 9px 18px;
  border-radius: 999px;
}
.main-nav .nav-cta:hover { background: #d7dfff; color: #1d34a0; }

.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(--ink);
  border-radius: 2px;
  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: 84px 0 72px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.08rem;
  max-width: 30em;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 히어로 경로 SVG — 시그니처 요소 */
.route-svg { width: 100%; height: auto; }
.route-line {
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-dasharray: 7 9;
  stroke-linecap: round;
  animation: routeFlow 18s linear infinite;
}
@keyframes routeFlow {
  to { stroke-dashoffset: -320; }
}
.route-dot { fill: var(--white); stroke: var(--ink); stroke-width: 2.5; }
.route-dot.end { fill: var(--accent); stroke: var(--accent); }
.route-dot.start { fill: var(--ink); }
.route-label {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  fill: var(--slate);
}

/* ---------- 수치 스트립 ---------- */
.stats {
  background: var(--ink);
  color: var(--white);
  padding: 44px 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.stat strong span {
  font-size: 1.05rem;
  font-weight: 600;
  margin-left: 2px;
  color: #9fb3d4;
}
.stat p { color: #b8c5dc; font-size: 0.9rem; margin-top: 4px; }

/* ---------- 서비스 카드 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: #2946c9;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

/* ---------- 프로세스 ---------- */
.process { background: var(--white); }
.process-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  position: relative;
}
/* 단계 사이 점선 커넥터 — 경로 모티프 반복 */
.process-list::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 6%;
  right: 6%;
  border-top: 2.5px dashed var(--line);
  z-index: 0;
}
.process-list li { position: relative; z-index: 1; }
.step-no {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 16px;
}
.process-list li:last-child .step-no { background: var(--accent); }
.process-list h3 { font-size: 1.08rem; margin-bottom: 8px; }
.process-list p { font-size: 0.93rem; }

/* ---------- FAQ 아코디언 ---------- */
.faq-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.faq-note { font-size: 0.95rem; margin-top: -24px; }

.accordion {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.acc-item + .acc-item { border-top: 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: 20px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  transition: background 0.15s ease;
}
.acc-trigger:hover { background: #fafbfe; }
.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: 13px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  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 22px 22px;
  font-size: 0.96rem;
}
.acc-panel.opening, .acc-panel.closing {
  transition: height 0.28s ease;
}

/* ---------- 문의 ---------- */
.contact { padding-bottom: 110px; }
.contact-inner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 64px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.contact-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.contact-inner > p { margin-bottom: 28px; }
.contact-sub { margin-top: 18px; font-size: 0.9rem; color: #8b93a5; }

/* mailto CTA 대체 안내 표시 */
.demo-note {
  display: inline-block;
  padding: 15px 28px;
  border: 1.5px dashed var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #2946c9;
  font-weight: 700;
  font-size: 0.98rem;
}

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--ink);
  color: #b8c5dc;
  padding: 40px 0;
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo { font-weight: 800; color: var(--white); font-size: 1.05rem; margin-bottom: 10px; }
.footer-meta { line-height: 1.8; }
.footer-note { align-self: flex-end; color: #7f8ca6; }

/* ---------- 등장 애니메이션 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  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; }
  .route-line { animation: none; }
  .acc-panel.opening, .acc-panel.closing { transition: none; }
}

/* ============================================
   반응형
   ============================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .card-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .process-list::before { display: none; }
  .faq-inner { grid-template-columns: 1fr; gap: 32px; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .hero { padding: 56px 0 48px; }

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

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

  .process-list { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-note { align-self: flex-start; }
}
