:root {
  --ink: #14213d;
  --ink-2: #44506a;
  --muted: #6b7690;
  --line: #e4e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --navy: #0f1a33;
  --brand: #3b5bfd;
  --brand-2: #7a5cff;
  --cookie: #f28c28;
  --rabbit: #e5484d;
  --pbl: #12a594;
  --radius: 20px;
  --shadow: 0 18px 50px -20px rgba(20, 33, 61, .28);
  --wrap: 1180px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(15, 26, 51, .6); }
.btn-ghost { border: 1.5px solid var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; object-fit: contain; mix-blend-mode: multiply; }
.brand-text {
  font-family: "Sora", "Pretendard Variable", sans-serif;
  font-weight: 800; font-size: 21px; letter-spacing: .04em; line-height: 1;
  color: var(--ink);
}
.nav { display: flex; gap: 34px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.nav-toggle span + span { margin-top: 7px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding-block: 72px 96px;
  background:
    radial-gradient(600px 380px at 85% 10%, rgba(122, 92, 255, .14), transparent 70%),
    radial-gradient(520px 360px at 10% 90%, rgba(18, 165, 148, .12), transparent 70%),
    linear-gradient(180deg, #f7f8ff 0%, #fff 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cookie), var(--rabbit) 50%, var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 24px; font-size: 18px; color: var(--ink-2); max-width: 34em; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tags { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags li { font-size: 13px; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; }

.hero-visual { position: relative; aspect-ratio: 1 / .9; }
.shot {
  position: absolute; margin: 0;
  border-radius: 18px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow);
  border: 6px solid #fff;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption {
  position: absolute; left: 10px; bottom: 10px;
  font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(15, 26, 51, .72); padding: 4px 10px; border-radius: 999px;
}
.shot-1 { width: 66%; aspect-ratio: 16 / 9; top: 0; left: 0; transform: rotate(-3deg); }
.shot-2 { width: 58%; aspect-ratio: 3 / 2; top: 26%; right: 0; transform: rotate(3deg); z-index: 2; }
.shot-3 { width: 62%; aspect-ratio: 16 / 9; bottom: 2%; left: 8%; transform: rotate(-1deg); z-index: 3; }
.agent-chip {
  position: absolute; z-index: 4; right: 2%; bottom: 6%;
  display: flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff; font-size: 13px; font-weight: 600;
  padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow);
}
.agent-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ee6a8; box-shadow: 0 0 0 0 rgba(62, 230, 168, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(62, 230, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 230, 168, 0); } }

/* Facts */
.facts { border-block: 1px solid var(--line); background: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 30px 20px; text-align: center; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact b { display: block; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.fact span { font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding-block: 112px; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.section-head p:not(.eyebrow) { margin-top: 18px; font-size: 17px; color: var(--ink-2); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { padding: 34px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .2s, transform .2s; }
.pillar:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.pillar-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #eef1ff; margin-bottom: 22px; }
.pillar-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-size: 20px; margin-bottom: 10px; }
.pillar p { color: var(--ink-2); font-size: 15.5px; }

/* Agent pipeline (dark) */
.section-dark {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(122, 92, 255, .28), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(18, 165, 148, .22), transparent 70%),
    var(--navy);
  color: #fff;
}
.section-dark .eyebrow { color: #9fb0ff; }
.section-dark .section-head p:not(.eyebrow) { color: #c3cbe0; }
.lead strong { color: var(--ink); font-weight: 800; }
.agent-traits { list-style: none; padding: 0; margin: 0 0 72px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.agent-traits li { padding: 24px 22px; border-radius: 18px; background: rgba(255, 255, 255, .95); color: var(--ink); }
.agent-traits b { display: block; font-size: 17px; margin-bottom: 8px; padding-top: 14px; border-top: 3px solid; border-image: linear-gradient(90deg, #0a5fd1, #0b9e8f, #3fa51f) 1; }
.agent-traits span { font-size: 14.5px; color: var(--ink-2); }
.pipeline-title { font-size: 20px; margin-bottom: 20px; color: #dfe4f0; }
.pipeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.pipeline li {
  position: relative; padding: 26px 22px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
}
.pipeline li:not(:last-child)::after {
  content: ""; position: absolute; top: 38px; right: -13px; z-index: 1;
  width: 10px; height: 10px; border-top: 2px solid #9fb0ff; border-right: 2px solid #9fb0ff;
  transform: rotate(45deg);
}
.step-no { font-size: 13px; font-weight: 800; color: #9fb0ff; letter-spacing: .1em; }
.pipeline h3 { font-size: 18px; margin: 10px 0 8px; }
.pipeline p { font-size: 14.5px; color: #c3cbe0; }
.agent-demo { margin-top: 48px; max-width: 640px; display: flex; flex-direction: column; gap: 12px; }
.bubble { padding: 14px 18px; border-radius: 18px; font-size: 15.5px; max-width: 88%; }
.bubble-user { align-self: flex-end; background: #fff; color: var(--ink); border-bottom-right-radius: 6px; }
.bubble-ai { background: linear-gradient(135deg, #3b5bfd, #7a5cff); border-bottom-left-radius: 6px; }
.bubble-ai b { display: block; font-size: 12.5px; opacity: .85; margin-bottom: 4px; }
.demo-note { font-size: 13.5px; color: #9aa6c2; }

/* Services */
.service {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding-block: 40px;
}
.service + .service { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 80px; }
.service.reverse .service-media { order: 2; }
.service-media { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 10.5; background: var(--bg-soft); }
.service-media > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.service-media .emblem { position: absolute; right: 4%; bottom: 4%; width: 18%; height: auto; filter: drop-shadow(0 6px 12px rgba(0,0,0,.25)); }
.service-kicker { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.service h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.service h3 span { display: block; font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 6px; }
.service-body > p:not(.service-kicker) { margin-top: 18px; color: var(--ink-2); }
.feature-list { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 12px; }
.feature-list li { position: relative; padding-left: 20px; font-size: 15px; color: var(--ink-2); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.feature-list b { display: block; color: var(--ink); font-size: 15.5px; }
.btn-service { background: var(--accent); color: #fff; }
.btn-service:hover { box-shadow: 0 10px 24px -10px var(--accent); }
.service-cookie { --accent: var(--cookie); }
.service-rabbit { --accent: var(--rabbit); }
.service-pbl { --accent: var(--pbl); }
.service-cookie .service-kicker { color: #c96a10; }
.service-rabbit .service-kicker { color: var(--rabbit); }
.service-pbl .service-kicker { color: #0d8a7c; }

/* Audience */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.audience article { background: #fff; border-radius: var(--radius); padding: 32px 30px; border: 1px solid var(--line); }
.audience h3 { font-size: 20px; margin-bottom: 10px; }
.audience p { color: var(--ink-2); font-size: 15.5px; }

/* Contact */
.contact-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  background: linear-gradient(135deg, #eef1ff, #f3fbf9);
  border-radius: 28px; padding: 56px;
}
.contact h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
.contact-inner > div > p:not(.eyebrow) { margin-top: 14px; color: var(--ink-2); }
.contact-inner > div > .contact-hours { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.contact-list .contact-main { background: var(--ink); }
.contact-list .contact-main span { color: #c3cbe0; }
.contact-list .contact-main a { color: #fff; }
.footer-info a { color: #dfe4f0; text-decoration: none; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { background: #fff; border-radius: 16px; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; box-shadow: 0 6px 20px -14px rgba(20, 33, 61, .4); }
.contact-list span { font-size: 14.5px; color: var(--ink-2); font-weight: 600; }
.contact-list a { font-size: 24px; font-weight: 800; text-decoration: none; letter-spacing: -0.01em; }

/* Footer */
.site-footer { background: var(--navy); color: #aab4cc; padding-block: 56px; font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 20px 48px; }
.footer-brand strong { display: block; color: #fff; font-size: 18px; }
.footer-info { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; }
.footer-info div { display: flex; gap: 8px; }
.footer-info dt { color: #7d88a3; }
.footer-info dd { margin: 0; }
.footer-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { text-decoration: none; color: #dfe4f0; font-weight: 600; }
.footer-links a:hover { color: #fff; }
.copy { grid-column: 1 / -1; padding-top: 24px; margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; color: #7d88a3; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .agent-chip .dot { animation: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .agent-traits { grid-template-columns: repeat(2, 1fr); }
  .pipeline li::after { display: none; }
}
@media (max-width: 880px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: block; }
  .hero { padding-block: 48px 64px; }
  .hero-inner, .service, .contact-inner, .footer-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .service { gap: 28px; }
  .service.reverse .service-media { order: 0; }
  .pillars, .audience { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding-block: 80px; }
  .contact-inner { padding: 36px 24px; }
  .footer-links { grid-column: auto; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 18px; }
  .pipeline, .agent-traits { grid-template-columns: 1fr; }
  .lead { font-size: 16.5px; }
  .contact-list a { font-size: 21px; }
}
