/* DigitalBlob — Site styles */
/* Design direction: 자신감 있는 에디토리얼 그로스 — 화이트 페이퍼 / 네이비 잉크 / 블롭 블루 액센트 */

:root {
  --paper: #F6F7FA;
  --paper-2: #ECEEF4;
  --ink: #0B1230;
  --ink-2: #1A2150;
  --mute: #6A7090;
  --line: #D8DCE8;
  --blob: #2B4DE4;
  --blob-deep: #1E36B5;
  --blob-light: #4DBDF5;
  --ok: #1E5C3A;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-feature-settings: "ss01", "ss02";
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* Utility */
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.row { display: flex; }
.muted { color: var(--mute); }
.mono { font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-feature-settings: normal; letter-spacing: 0; }
.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule-ink { background: var(--ink); height: 1px; border: 0; margin: 0; }

/* Header / Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 247, 250, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background .35s ease, border-color .35s ease, color .35s ease;
}
.nav.is-scrolled {
  background: rgba(11, 18, 48, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: var(--paper);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); position: relative; }
.nav-brand img { height: 28px; width: auto; object-fit: contain; display: block; transition: opacity .35s ease; }
.nav-brand .logo-dark { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; pointer-events: none; }
.nav.is-scrolled .nav-brand .logo-light { opacity: 0; }
.nav.is-scrolled .nav-brand .logo-dark { opacity: 1; }
.nav-brand span.brand-text { display: none; } /* logo image already includes the wordmark */
.nav-links { display: flex; gap: 28px; justify-self: center; }
.nav-links a { font-size: 14px; color: var(--ink); position: relative; padding: 6px 2px; transition: color .35s ease; }
.nav.is-scrolled .nav-links a { color: var(--paper); }
.nav-links a[aria-current="page"]::after,
.nav-links a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--ink); transition: background .35s ease;
}
.nav.is-scrolled .nav-links a[aria-current="page"]::after,
.nav.is-scrolled .nav-links a:hover::after { background: var(--paper); }
.nav-cta { justify-self: end; display: flex; gap: 10px; align-items: center; }
.nav.is-scrolled .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.nav.is-scrolled .btn:hover { background: var(--blob); color: var(--paper); border-color: var(--blob); }

/* Hamburger button (mobile) */
.nav-hamburger {
  display: none; justify-self: end;
  background: transparent; border: 0;
  width: 44px; height: 44px;
  cursor: pointer; padding: 0;
  position: relative; z-index: 60;
}
.nav-hamburger span {
  display: block; position: absolute;
  left: 12px; right: 12px; height: 2px;
  background: var(--ink);
  transition: transform .3s ease, top .3s ease, opacity .2s ease, background .25s ease;
}
.nav-hamburger span:nth-child(1) { top: 15px; }
.nav-hamburger span:nth-child(2) { top: 21px; }
.nav-hamburger span:nth-child(3) { top: 27px; }
.nav.is-scrolled .nav-hamburger span { background: var(--paper); }
body.mobile-open .nav-hamburger span { background: var(--paper) !important; }
body.mobile-open .nav-hamburger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.mobile-open .nav-hamburger span:nth-child(2) { opacity: 0; }
body.mobile-open .nav-hamburger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile menu drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column;
  padding: 96px 32px 48px;
  opacity: 0; pointer-events: none;
  transform: translateY(-12px);
  transition: opacity .3s ease, transform .3s ease;
}
body.mobile-open .mobile-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
body.mobile-open { overflow: hidden; }
.mobile-menu a {
  font-size: clamp(28px, 7vw, 44px); font-weight: 600; letter-spacing: -0.02em;
  color: var(--paper); padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color .15s ease;
}
.mobile-menu a:hover, .mobile-menu a:focus { color: var(--blob-light); }
.mobile-menu a[aria-current="page"] { color: var(--blob-light); }
.mobile-menu .mm-foot {
  margin-top: auto; display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; color: #B5BBD6; font-family: "JetBrains Mono", monospace;
}
.mobile-menu .mm-foot a { font-size: 13px; padding: 0; border: 0; color: var(--paper); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--blob); border-color: var(--blob); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn .arr { display: inline-block; transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* Section primitives */
section { padding: 96px 0; border-bottom: 1px solid var(--line); }
section.tight { padding: 56px 0; }
.section-head {
  display: grid; grid-template-columns: 1fr 2fr; gap: 48px; margin-bottom: 56px; align-items: end;
}
.section-head h2 {
  font-size: clamp(40px, 5vw, 72px); line-height: 1.08; letter-spacing: -0.035em;
  font-weight: 600; margin: 12px 0 0;
}

/* Hero */
.hero {
  padding: 88px 0 64px; border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 88% -10%, rgba(77,189,245,0.18) 0%, rgba(77,189,245,0.06) 35%, transparent 65%),
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(43,77,228,0.04) 0%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.hero h1 {
  font-size: clamp(48px, 7.5vw, 112px); line-height: 0.98;
  letter-spacing: -0.04em; font-weight: 600; margin: 24px 0 0;
  word-break: keep-all;
}
.hero h1 .nowrap { white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--blob); }
.hero-sub { font-size: 18px; line-height: 1.5; max-width: 44ch; color: var(--ink-2); }
.hero-meta { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta div .eyebrow { display: block; margin-bottom: 6px; }
.hero-meta div strong { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }

/* Marquee */
.marquee {
  overflow: hidden; padding: 22px 0; background: var(--paper);
}
.marquee-track {
  display: flex; gap: 56px; width: max-content;
  animation: marquee 60s linear infinite;
  white-space: nowrap;
}
.marquee-track.marquee-reverse { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink);
  opacity: .82;
}
.marquee-item::after { content: "●"; color: var(--blob); font-size: 8px; transform: translateY(-2px); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Service cards */
.svc-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc {
  grid-column: span 6; background: var(--paper); padding: 36px 32px; min-height: 280px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background .2s ease;
}
.svc:hover { background: var(--paper-2); }
.svc:nth-child(3n) { grid-column: span 4; }
.svc:nth-child(3n+1) { grid-column: span 4; }
.svc:nth-child(3n+2) { grid-column: span 4; }
.svc-num { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--mute); }
.svc h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin: 16px 0 12px; }
.svc p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* Case cards */
.cases { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; }
.case { grid-column: span 6; }
.case-wide { grid-column: span 12; }
.case-art {
  aspect-ratio: 16/10; border: 1px solid var(--ink);
  background: var(--paper-2); position: relative; overflow: hidden;
  transition: transform .25s ease;
}
.case:hover .case-art { transform: translateY(-4px); }
.case-meta { display: flex; justify-content: space-between; margin-top: 18px; gap: 16px; }
.case-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.case-kpi { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--mute); }
.case-tag {
  display: inline-block; padding: 4px 10px; border: 1px solid var(--ink); border-radius: 999px;
  font-size: 11px; font-family: "JetBrains Mono", monospace; letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Logo wall */
.logowall {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.logowall .cell {
  background: var(--paper); aspect-ratio: 3/2;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  transition: background .2s ease;
}
.logowall .cell:hover { background: var(--paper-2); }
.logowall .cell svg, .logowall .cell .lg { max-height: 36px; max-width: 80%; color: var(--ink); }

/* Footer */
footer { background: var(--ink); color: var(--paper); padding: 80px 0 32px; }
footer .wrap > .grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid #1F2752; }
footer h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #B5BBD6; margin: 0 0 18px; font-weight: 500; }
footer a { display: block; padding: 4px 0; opacity: 0.9; }
footer a:hover { color: var(--blob); }
footer .brand-blk { font-size: clamp(42px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.035em; font-weight: 600; }
footer .brand-blk em { color: var(--blob); font-style: normal; }
footer .brand-logo { height: 36px; width: auto; display: block; margin-bottom: 4px; }

/* Logo wall using real brand marks */
.lw-img { max-height: 40px; max-width: 88%; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .82; transition: filter .2s ease, opacity .2s ease; }
.logowall .cell:hover .lw-img { filter: none; opacity: 1; }
.marquee-item img { height: 26px; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .82; }
.marquee-item img.tall { height: 30px; }
footer .legal {
  display: flex; justify-content: space-between; padding-top: 24px; font-size: 12px; color: #9BA3C2;
  font-family: "JetBrains Mono", monospace;
}

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; background: transparent;
  border: 1px solid var(--line); border-radius: 0; font: inherit; color: var(--ink);
  outline: none; transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }

/* Responsive */
@media (max-width: 900px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: block; }
  .hero-grid, .section-head { grid-template-columns: 1fr; }
  .svc, .case { grid-column: span 12 !important; }
  .logowall { grid-template-columns: repeat(3, 1fr); }
  footer .wrap > .grid { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
}

/* Decorative blob shape — subtle blue radial */
.blob-shape {
  position: absolute; width: 520px; height: 520px;
  background: radial-gradient(circle at 35% 35%, rgba(43,77,228,0.10), rgba(77,189,245,0.04) 60%, transparent 72%);
  filter: blur(2px);
  pointer-events: none;
}
.blob-shape.b1 { top: -160px; right: -160px; }

/* Pretendard fallback (load if available) */
@font-face {
  font-family: "Pretendard Variable";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/woff2/PretendardVariable.woff2") format("woff2-variations");
}
