/* ==========================================================================
   ONLEAD — onlead.co.kr
   Ink #0B1220 · Cobalt #2049E6 · Mist #F4F6F9 · Type: Pretendard only
   ========================================================================== */

:root {
  --ink: #0B1220;
  --ink-soft: #1A2333;
  --cobalt: #2049E6;
  --cobalt-deep: #1737B8;
  --paper: #FFFFFF;
  --mist: #F4F6F9;
  --line: #E3E8EF;
  --gray: #5B6472;
  --gray-light: #9AA3B2;
  --radius: 18px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* 한글은 어절 단위로 줄바꿈 — 좁은 화면에서 "합니/다" 식으로 끊기는 것 방지 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.pc-only { display: inline; }

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

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; }
.logo-svg { height: 32px; width: auto; display: block; }

/* 히어로 위(투명 헤더)에서는 어두운 사진을 배경으로 깔고 있어
   ON 은 밝은 코발트, LEAD 는 흰색으로 둔다. */
.lg-plate { fill: #FFFFFF; }
.lg-ring  { fill: #2049E6; }
.lg-bar   { fill: #0B1220; }
.lg-on    { fill: #7A96FF; }
.lg-lead  { fill: #FFFFFF; }
.lg-plate, .lg-ring, .lg-bar, .lg-on, .lg-lead { transition: fill 0.35s var(--ease); }

/* 헤더가 흰 배경으로 바뀌면 기본형 색상으로 되돌린다. */
.header.scrolled .lg-plate,
.header.nav-open .lg-plate { fill: var(--ink); }
.header.scrolled .lg-bar,
.header.nav-open .lg-bar { fill: #FFFFFF; }
.header.scrolled .lg-on,
.header.nav-open .lg-on { fill: var(--cobalt); }
.header.scrolled .lg-lead,
.header.nav-open .lg-lead { fill: var(--ink); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s;
}
.nav a:hover { color: #fff; }
.header.scrolled .nav a { color: var(--gray); }
.header.scrolled .nav a:hover { color: var(--ink); }

.nav a.nav-cta {
  background: var(--cobalt);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background 0.25s, transform 0.25s var(--ease);
}
.nav a.nav-cta:hover { background: var(--cobalt-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.header.scrolled .nav-toggle span,
.header.nav-open .nav-toggle span { background: var(--ink); }
.header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.header.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-bg { position: absolute; inset: 0; overflow: hidden; background: var(--ink); }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  animation: heroZoom 14s var(--ease) forwards;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.45) 0%, rgba(11, 18, 32, 0.25) 45%, rgba(11, 18, 32, 0.85) 100%);
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 140px 24px 120px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(38px, 6.2vw, 74px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.035em;
}
.hero-title .line { display: block; }
.hero-title em {
  font-style: normal;
  color: #7A96FF;
}

.hero-sub {
  margin-top: 28px;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.hero-actions { margin-top: 42px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
}
.hero-scroll-line {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -50%;
  width: 100%;
  height: 50%;
  background: #fff;
  animation: scrollDrop 2s var(--ease) infinite;
}
@keyframes scrollDrop {
  to { top: 110%; }
}
.hero-scroll-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.55);
}

/* Load-in stagger */
.reveal-load {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 0.13s + 0.15s);
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn-primary {
  background: var(--cobalt);
  color: #fff;
}
.btn-primary:hover {
  background: var(--cobalt-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(32, 73, 230, 0.35);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}
.marquee-track i { font-style: normal; color: var(--cobalt); font-weight: 800; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Sections (base)
   -------------------------------------------------------------------------- */
.section { padding: 110px 0; }
.section-mist { background: var(--mist); }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--cobalt);
  margin-bottom: 16px;
}
.eyebrow-light { color: #7A96FF; }

.section h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.section-head { max-width: 640px; margin-bottom: 64px; }
.section-desc {
  margin-top: 20px;
  font-size: 17px;
  color: var(--gray);
  line-height: 1.85;
}

/* Scroll reveal — .js 가 붙어 있을 때만 감춘다.
   스크립트가 실행되지 않으면 본문이 그대로 보여야 한다. */
.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(11, 18, 32, 0.1);
}

.service-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--mist);
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .service-img img { transform: scale(1.05); }

.service-body { padding: 26px 28px 30px; }
.service-body h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.service-body p { font-size: 15.5px; color: var(--gray); }

/* Stagger cards slightly */
.service-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.service-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.service-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

/* --------------------------------------------------------------------------
   Why OnLead (dark)
   -------------------------------------------------------------------------- */
.section-dark {
  background: var(--ink);
  color: #fff;
}
.section-dark .section-desc { color: rgba(255, 255, 255, 0.72); }

.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.why-copy { position: sticky; top: 120px; }
.why-copy .btn { margin-top: 34px; }

.why-list { display: grid; gap: 18px; }
.why-list li {
  background: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 30px 32px;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.why-list li:hover { border-color: rgba(122, 150, 255, 0.5); transform: translateX(6px); }
.why-list h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.why-list p { font-size: 15px; color: rgba(255, 255, 255, 0.68); }
.why-list .reveal:nth-child(2) { transition-delay: 0.08s; }
.why-list .reveal:nth-child(3) { transition-delay: 0.16s; }
.why-list .reveal:nth-child(4) { transition-delay: 0.24s; }

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}
.process-list li {
  padding: 36px 28px 40px;
  border-left: 1px solid var(--line);
}
.process-list li:last-child { border-right: 1px solid var(--line); }

.process-num {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--cobalt);
  margin-bottom: 60px;
}
.process-list h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.process-list p { font-size: 15px; color: var(--gray); }

.process-list .reveal:nth-child(2) { transition-delay: 0.1s; }
.process-list .reveal:nth-child(3) { transition-delay: 0.2s; }
.process-list .reveal:nth-child(4) { transition-delay: 0.3s; }

/* --------------------------------------------------------------------------
   Partnership
   -------------------------------------------------------------------------- */
.partner-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.partner-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.partner-img img { width: 100%; height: 100%; object-fit: cover; }

.partner-points { margin-top: 30px; display: grid; gap: 14px; }
.partner-points li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.partner-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cobalt);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.5 3.5L13 5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.5 3.5L13 5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.section-contact {
  background: var(--ink);
  color: #fff;
}
.section-contact .section-desc { color: rgba(255, 255, 255, 0.72); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-direct { margin-top: 40px; }
.contact-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gray-light);
  margin-bottom: 6px;
}
.contact-mail {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--cobalt);
  padding-bottom: 2px;
  transition: color 0.25s;
}
.contact-mail:hover { color: #7A96FF; }

.contact-form {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  gap: 22px;
}
.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: var(--mist);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.25s, background 0.25s;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--gray-light); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  background: #fff;
}
.form-note {
  font-size: 13px;
  color: var(--gray-light);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: #070C16;
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 36px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-logo { height: 30px; width: auto; }
.footer-brand p { margin-top: 16px; font-size: 14px; max-width: 380px; }

.footer-info { display: grid; gap: 10px; font-size: 14px; }
.footer-info span {
  display: inline-block;
  width: 56px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}
.footer-info a:hover { color: #fff; }

.footer-copy { padding-top: 28px; }
.footer-copy p { font-size: 13px; color: rgba(255, 255, 255, 0.38); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .why-layout,
  .partner-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 56px; }
  .why-copy { position: static; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-list li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .process-num { margin-bottom: 36px; }
}

@media (max-width: 720px) {
  .pc-only { display: none; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s;
  }
  .header.nav-open .nav {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .header.nav-open {
    background: #fff;
    box-shadow: 0 1px 0 var(--line);
  }
  .nav a {
    color: var(--ink) !important;
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--mist);
  }
  .nav a.nav-cta {
    margin-top: 14px;
    text-align: center;
    border-bottom: 0;
    color: #fff !important;
  }
  .nav-toggle { display: flex; }

  .hero-inner { padding: 120px 24px 100px; }
  .hero-actions .btn { flex: 1 1 100%; }

  .service-grid { grid-template-columns: 1fr; gap: 20px; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li { padding: 28px 24px; }
  .process-num { margin-bottom: 20px; }

  .contact-form { padding: 28px 22px; }
  .why-list li { padding: 24px; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal-load {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .hero-bg img { animation: none; }
  .marquee-track { animation: none; }
  .hero-scroll-line::after { animation: none; }
}
