:root {
  --navy-deep: #0A1628;
  --navy-mid: #0F2040;
  --cyan: #00D4FF;
  --cyan-muted: #00A8CC;
  --white: #FFFFFF;
  --surface: #F8F9FA;
  --surface-2: #EEF1F5;
  --gray-600: #4B5563;
  --gray-400: #9CA3AF;
  --gray-200: #E5E7EB;
  --border: rgba(0, 212, 255, 0.15);
  --border-strong: rgba(0, 212, 255, 0.32);
  --max-w: 1280px;
  --font-kr: 'Pretendard', 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-kr);
  color: var(--navy-deep);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ───────── NAV ───────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--font-en);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 20px;
  color: var(--white);
}
.logo .g { color: var(--cyan); }
.nav-links {
  display: flex; align-items: center; gap: 30px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cyan); color: var(--navy-deep);
  font-weight: 700; font-size: 13px;
  padding: 10px 16px; border-radius: 6px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--cyan-muted); color: var(--white); }

.hamburger { display: none; width: 32px; height: 32px; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); transition: 0.25s; }

.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 86%; max-width: 360px;
  background: var(--navy-deep);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 99;
  padding: 80px 32px 40px;
  display: flex; flex-direction: column; gap: 8px;
  border-left: 1px solid var(--border);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a {
  font-size: 18px; font-weight: 600;
  color: rgba(255,255,255,0.9);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-drawer .nav-cta {
  margin-top: 20px; padding: 14px 20px; font-size: 14px;
  align-self: stretch;
}
.scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
  z-index: 98;
}
.scrim.open { opacity: 1; pointer-events: auto; }

/* ───────── REVEAL ───────── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ───────── HERO ───────── */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--navy-deep);
  color: var(--white);
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.04;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.hero h1 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
}
.hero h1 .en {
  font-family: var(--font-en);
  display: block;
  margin-bottom: 14px;
}
.hero h1 .kr-1, .hero h1 .kr-2 {
  display: block;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.25;
  font-weight: 800;
}
.hero h1 .kr-1 { margin-top: 8px; }
.hero-sub {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.62);
  max-width: 540px;
}
.cta-row {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px;
  border-radius: 6px;
  font-size: 15px; font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--cyan); color: var(--navy-deep);
}
.btn-primary:hover { background: var(--cyan-muted); color: var(--white); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }
.btn-outline-cyan {
  background: transparent; color: var(--cyan);
  border: 1px solid var(--cyan);
}
.btn-outline-cyan:hover { background: var(--cyan); color: var(--navy-deep); }

.trust-microsignals {
  display: flex; flex-wrap: wrap; gap: 22px;
  margin-top: 36px;
  font-size: 13px; color: rgba(255,255,255,0.6);
}
.trust-microsignals span {
  display: inline-flex; align-items: center; gap: 8px;
}
.trust-microsignals span::before {
  content: ''; width: 14px; height: 14px;
  border: 1.5px solid var(--cyan); border-radius: 50%;
  background:
    radial-gradient(circle, var(--cyan) 30%, transparent 32%);
}

/* RIGHT diagram panel */
.hero-panel {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px;
}
.hero-panel-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-400);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 10px;
}
.hero-panel-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,212,255,0.15);
}
.flow-svg { width: 100%; height: auto; }
.flow-caption {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
}

/* ───────── TRUST STRIP ───────── */
.trust-strip {
  background: var(--surface);
  padding: 56px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  padding: 8px 32px;
  border-left: 1px solid var(--gray-200);
}
.trust-item:first-child { border-left: none; padding-left: 0; }
.trust-num {
  font-family: var(--font-en);
  font-size: 32px; font-weight: 800;
  color: var(--cyan);
  letter-spacing: -0.02em;
  line-height: 1;
}
.trust-num small {
  font-size: 18px; font-weight: 700; color: var(--cyan); margin-left: 2px;
}
.trust-label {
  margin-top: 14px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.55;
}

/* ───────── SERVICES ───────── */
.services {
  background: var(--surface-2);
  padding: 120px 0;
}
.section-head {
  text-align: center;
  margin-bottom: 64px;
}
.section-head h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-head p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--gray-600);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(0, auto);
  gap: 24px;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 32px;
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.svc-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 12px 30px -18px rgba(10,22,40,0.25);
}
.svc-badge {
  position: absolute; top: 20px; right: 20px;
  background: var(--cyan); color: var(--navy-deep);
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 4px;
  letter-spacing: 0.02em;
}
.svc-icon {
  width: 44px; height: 44px;
  color: var(--navy-deep);
  margin-bottom: 24px;
}
.svc-title {
  font-size: 20px; font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.svc-sub {
  font-size: 14px;
  color: var(--cyan-muted);
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.5;
}
.svc-body {
  font-size: 14.5px;
  color: var(--gray-600);
  line-height: 1.7;
  flex: 1;
}
.svc-link {
  margin-top: 24px;
  font-size: 14px; font-weight: 700;
  color: var(--cyan-muted);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s, color 0.2s;
}
.svc-link:hover { gap: 10px; color: var(--cyan); }

/* small intentional asymmetric breathing room — first card slightly taller via extra body */
.svc-card.tall { padding: 36px 32px 32px; }

/* ───────── WHY ───────── */
.why {
  background: var(--white);
  padding: 120px 0;
}
.why-head h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}
.pull-quote {
  font-size: clamp(24px, 2.8vw, 34px);
  font-style: italic;
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 880px;
  padding: 36px 0 56px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 64px;
}
.why-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 80px;
}
.why-blocks > *:first-child { grid-column: span 2; max-width: 880px; }
.why-block {
  padding-left: 24px;
  border-left: 3px solid var(--cyan);
}
.why-block h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.why-block p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.8;
}

/* ───────── PIPELINE ───────── */
.pipeline {
  background: var(--navy-deep);
  color: var(--white);
  padding: 120px 0;
  position: relative;
}
.pipeline::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.03;
  pointer-events: none;
}
.pipeline .section-head h2 { color: var(--white); }
.pipeline .section-head p { color: var(--gray-400); }
.pipeline-svg-wrap {
  position: relative;
  margin: 24px 0 56px;
}
.pipeline-svg { width: 100%; height: auto; }
.pipeline-foot {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.pipeline-foot p {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 32px;
}

/* ───────── GLOBAL ───────── */
.global-section {
  background: var(--surface);
  padding: 120px 0;
}
.global-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.global-card {
  background: var(--surface-2);
  border-radius: 8px;
  overflow: hidden;
}
.global-card .head {
  background: var(--navy-deep);
  color: var(--white);
  padding: 18px 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
}
.global-card .head::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
}
.global-card .body {
  padding: 28px 24px;
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.85;
}
.global-card .body strong {
  color: var(--navy-deep); font-weight: 600;
}

/* ───────── CONTACT ───────── */
.contact {
  background: var(--navy-deep);
  color: var(--white);
  padding: 120px 0;
  position: relative;
}
.contact::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.03;
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  position: relative;
}
.contact-left h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.contact-left .lede {
  font-size: 17px;
  color: var(--gray-400);
  line-height: 1.85;
  margin-bottom: 40px;
}
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}
.contact-info-item svg { flex: none; color: var(--cyan); margin-top: 2px; }

.contact-form {
  background: var(--white);
  color: var(--navy-deep);
  border-radius: 16px;
  padding: 40px;
}
.contact-form h3 {
  font-size: 20px; font-weight: 700;
  margin-bottom: 24px;
  color: var(--navy-deep);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px; font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy-deep);
}
.field label .req { color: var(--cyan-muted); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--navy-deep);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.field.error input,
.field.error select,
.field.error textarea {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.12);
}
.field .err-msg {
  display: none; margin-top: 6px;
  font-size: 12px; color: #DC2626;
}
.field.error .err-msg { display: block; }
.submit-btn {
  width: 100%;
  height: 52px;
  background: var(--cyan);
  color: var(--navy-deep);
  font-weight: 800; font-size: 15px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
  margin-top: 6px;
}
.submit-btn:hover { background: var(--cyan-muted); color: var(--white); }
.privacy { font-size: 12px; color: var(--gray-400); margin-top: 12px; text-align: center; }
.form-success {
  display: none;
  background: rgba(0,212,255,0.08);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--navy-deep);
  font-size: 14px;
  margin-bottom: 16px;
}
.form-success.show { display: block; }

/* ───────── FOOTER ───────── */
footer {
  background: var(--navy-deep);
  color: var(--gray-400);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: center;
  font-size: 13px;
}
.footer-inner .right { text-align: right; }
.footer-inner .center { text-align: center; }
.footer-inner a:hover { color: var(--white); }
.footer-inner .logo { font-size: 16px; }

/* ───────── RESPONSIVE ───────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 120px 0 80px; min-height: auto; }
  .hero-panel { padding: 28px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .global-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-blocks { grid-template-columns: 1fr; gap: 40px; }
  .why-blocks > *:first-child { grid-column: span 1; }
}

@media (max-width: 768px) {
  .container { padding: 0 22px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta.desktop-only { display: none; }
  .hero { padding: 110px 0 70px; }
  .hero-sub { font-size: 16px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .trust-item { padding: 0 18px; border-left: 1px solid var(--gray-200); }
  .trust-item:nth-child(odd) { border-left: none; padding-left: 0; }
  .services { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .why { padding: 80px 0; }
  .pipeline { padding: 80px 0; }
  .global-section { padding: 80px 0; }
  .contact { padding: 80px 0; }
  .contact-form { padding: 28px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 12px; }
  .footer-inner .right, .footer-inner .center { text-align: center; }
  .pipeline-svg-wrap { overflow-x: auto; }
  .pipeline-svg { min-width: 760px; }
}
