:root {
  --navy-900: #071528;
  --navy-800: #0a1d38;
  --navy-700: #0f2c55;
  --blue-600: #1659a6;
  --blue-500: #1f6fc4;
  --blue-400: #2f8bd8;
  --sky-300: #7cc0f0;
  --ink: #0e1726;
  --body: #3b4658;
  --muted: #6b778a;
  --line: #e3e8ef;
  --soft: #f4f7fb;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(10, 29, 56, .04), 0 8px 28px rgba(10, 29, 56, .07);
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- 머리줄 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s, box-shadow .25s;
  padding-top: env(safe-area-inset-top);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand .logo-dark { display: none; }
.brand span { font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--white); }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.82); transition: color .2s; }
.nav a:hover { color: var(--white); }
.nav .nav-cta {
  padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: var(--white);
}
.nav .nav-cta:hover { background: rgba(255,255,255,.1); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--white); }
.site-header.scrolled { background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.scrolled .brand span { color: var(--ink); }
.site-header.scrolled .brand .logo-light { display: none; }
.site-header.scrolled .brand .logo-dark { display: block; }
.site-header.scrolled .nav a { color: var(--body); }
.site-header.scrolled .nav a:hover { color: var(--blue-500); }
.site-header.scrolled .nav .nav-cta { border-color: var(--blue-500); color: var(--blue-500); }
.site-header.scrolled .nav .nav-cta:hover { background: var(--blue-500); color: var(--white); }
.site-header.scrolled .menu-btn { color: var(--ink); }

/* ---------- 첫 화면 ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(900px 520px at 85% 20%, rgba(47,139,216,.35), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(22,89,166,.35), transparent 60%),
    linear-gradient(160deg, var(--navy-700) 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  padding: calc(150px + env(safe-area-inset-top)) 0 0;
}
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; color: var(--sky-300);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 {
  margin: 22px 0 24px; font-size: clamp(36px, 5.4vw, 62px); line-height: 1.22; font-weight: 800; letter-spacing: -.035em;
}
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #8fd0ff, #4aa3ec); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.75); max-width: 560px; margin: 0 0 40px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 15px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--white); color: var(--navy-800); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { color: var(--white); border: 1px solid rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.hero-mark { position: relative; justify-self: center; width: min(100%, 400px); aspect-ratio: 1; display: grid; place-items: center; }
.hero-mark::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,139,216,.45), transparent 65%); filter: blur(10px);
}
.hero-mark .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); }
.hero-mark .ring.r2 { inset: 13%; border-color: rgba(255,255,255,.14); }
.hero-mark img { position: relative; width: 62%; filter: drop-shadow(0 16px 40px rgba(0,0,0,.35)); }
.facts {
  position: relative; margin-top: 96px; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.12);
}
.fact { padding: 30px 0 38px; }
.fact + .fact { padding-left: 36px; border-left: 1px solid rgba(255,255,255,.12); }
.fact strong { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--white); }
.fact span { font-size: 14px; color: rgba(255,255,255,.6); }

/* ---------- 공통 섹션 ---------- */
section.block { padding: 120px 0; }
section.block.soft { background: var(--soft); }
.sec-head { margin-bottom: 56px; max-width: 720px; }
.sec-head .eyebrow { color: var(--blue-500); }
.sec-head h2 { margin: 16px 0 16px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.3; color: var(--ink); font-weight: 800; letter-spacing: -.03em; }
.sec-head p { margin: 0; font-size: 17px; color: var(--muted); }

/* 회사 소개 */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.about .sec-head { margin-bottom: 0; }
.about-text p { font-size: 17px; margin: 0 0 18px; }
.values { display: grid; gap: 16px; margin-top: 34px; }
.value { display: flex; gap: 18px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.value .ico { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #e8f2fc, #d6e8fa); color: var(--blue-600); }
.value .ico svg { width: 22px; height: 22px; }
.value h3 { margin: 0 0 4px; font-size: 17px; color: var(--ink); }
.value p { margin: 0; font-size: 15px; color: var(--muted); }

/* 사업 분야 */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.biz {
  position: relative; padding: 36px 32px 34px; border-radius: var(--radius); background: var(--white);
  box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.biz:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(10,29,56,.05), 0 18px 40px rgba(10,29,56,.1); }
.biz .num { font-size: 13px; font-weight: 700; color: var(--blue-500); letter-spacing: .1em; }
.biz h3 { margin: 14px 0 12px; font-size: 21px; color: var(--ink); letter-spacing: -.02em; }
.biz p { margin: 0 0 18px; font-size: 15px; color: var(--muted); }
.biz ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--body); }
.biz li { display: flex; gap: 8px; }
.biz li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--blue-400); }
.biz::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
  border: 18px solid rgba(31,111,196,.06);
}

/* 서비스 */
.featured {
  display: grid; grid-template-columns: 1.1fr .9fr; border-radius: 24px; overflow: hidden;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-700)); color: var(--white); margin-bottom: 22px;
}
.featured-body { padding: 52px 52px 48px; }
.app-title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.app-title img { width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0; }
.app-title .tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(124,192,240,.16); color: var(--sky-300); margin-bottom: 4px; }
.featured h3 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.featured p.desc { margin: 0 0 26px; color: rgba(255,255,255,.72); font-size: 16px; }
.feature-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 15px; color: rgba(255,255,255,.88); }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; }
.feature-list svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 4px; color: var(--sky-300); }
.featured .btns .btn { padding: 13px 22px; font-size: 14px; }
.featured .doc-links { margin-top: 22px; }
.featured .doc-links a { color: rgba(255,255,255,.6); }
.featured .doc-links a:hover { color: var(--white); }
.featured-visual { position: relative; display: grid; place-items: center; padding: 40px; background: radial-gradient(500px 360px at 60% 40%, rgba(47,139,216,.4), transparent 70%); }
.featured-visual .platforms { display: grid; gap: 14px; width: 100%; max-width: 300px; }
.platform { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.platform svg { width: 26px; height: 26px; color: var(--sky-300); flex-shrink: 0; }
.platform strong { display: block; font-size: 15px; }
.platform span { font-size: 13px; color: rgba(255,255,255,.6); }
.platform svg.android { width: 30px; height: 30px; }
a.platform { color: inherit; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
a.platform > div { flex: 1; min-width: 0; }
a.platform:hover { background: rgba(255,255,255,.13); border-color: rgba(124,192,240,.45); transform: translateX(3px); }
.platform svg.go { width: 20px; height: 20px; color: rgba(255,255,255,.5); }
a.platform:hover svg.go { color: var(--white); }
.platform .os { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.platform .os i {
  font-style: normal; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; line-height: 1;
  padding: 4px 8px; border-radius: 999px; color: var(--white); background: rgba(124,192,240,.18); border: 1px solid rgba(124,192,240,.3);
}
.foot-note { margin-top: 6px; font-size: 12px; color: rgba(255,255,255,.35); }

.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.app {
  display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s;
}
.app:hover { border-color: #c9dcf0; box-shadow: var(--shadow); }
.app .app-title { margin-bottom: 14px; }
.app .app-title img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 2px 8px rgba(10,29,56,.08); }
.app .app-title .tag { background: #eaf3fc; color: var(--blue-600); }
.app h3 { margin: 0; font-size: 19px; color: var(--ink); letter-spacing: -.02em; }
.app p { margin: 0 0 22px; font-size: 15px; color: var(--muted); flex: 1; }
.app-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.play-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue-500); text-decoration: none; }
.play-link svg { width: 16px; height: 16px; transition: transform .2s; }
.play-link:hover svg { transform: translateX(3px); }
.doc-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.doc-links a { color: var(--muted); text-decoration: none; }
.doc-links a:hover { color: var(--blue-500); text-decoration: underline; }

/* 문의 */
.contact {
  position: relative; overflow: hidden; border-radius: 28px; padding: 64px;
  background: linear-gradient(120deg, var(--blue-600), var(--blue-400)); color: var(--white);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.contact::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%;
  border: 60px solid rgba(255,255,255,.08);
}
.contact h2 { margin: 0 0 14px; font-size: clamp(26px, 3vw, 36px); line-height: 1.3; letter-spacing: -.03em; }
.contact p { margin: 0; color: rgba(255,255,255,.82); font-size: 16px; }
.contact-items { position: relative; z-index: 1; display: grid; gap: 12px; }
.board-cta {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 16px; text-decoration: none; color: var(--blue-600);
  background: var(--white); box-shadow: 0 10px 30px rgba(7,21,40,.18); transition: transform .2s;
}
.board-cta:hover { transform: translateY(-2px); }
.board-cta > div { flex: 1; min-width: 0; }
.board-cta svg { width: 24px; height: 24px; flex-shrink: 0; }
.board-cta svg.go { width: 20px; height: 20px; opacity: .6; }
.board-cta strong { display: block; font-size: 17px; color: var(--ink); }
.board-cta small { display: block; font-size: 13px; color: var(--muted); }
.board-cta.ghost { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); box-shadow: none; color: var(--white); }
.board-cta.ghost strong { color: var(--white); }
.board-cta.ghost small { color: rgba(255,255,255,.72); }

/* 바닥글 */
footer { background: var(--navy-900); color: rgba(255,255,255,.55); padding: 64px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14px; margin-top: 120px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.foot-brand img { height: 96px; width: auto; margin-bottom: 4px; }
.foot-info { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0; }
.foot-info dt { color: rgba(255,255,255,.4); }
.foot-info dd { margin: 0; color: rgba(255,255,255,.75); }
.foot-info a { text-decoration: none; }
.foot-info a:hover { color: var(--white); }
.foot-bottom { padding-top: 26px; font-size: 13px; }

/* 나타나기 */
.js .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; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 980px) {
  .hero-grid, .about, .featured, .contact { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .about { gap: 40px; }
  .biz-grid, .app-grid { grid-template-columns: 1fr; }
  .featured-visual { padding: 0 52px 48px; background: none; place-items: start; }
  .featured-visual .platforms { max-width: none; grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 16px; } /* 메뉴가 두 줄로 접히지 않게 (760px 이하는 햄버거 메뉴) */
  .nav a { white-space: nowrap; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: calc(72px + env(safe-area-inset-top)) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 8px 20px 20px; box-shadow: 0 12px 30px rgba(10,29,56,.12);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a, .site-header.scrolled .nav a { color: var(--ink); padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 12px; text-align: center; border: 1px solid var(--blue-500) !important; color: var(--blue-500) !important; }
  .hero { padding-top: calc(120px + env(safe-area-inset-top)); }
  .hero .eyebrow { font-size: 11px; letter-spacing: .12em; }
  .hero .eyebrow .sub { display: none; }
  .facts { grid-template-columns: 1fr; margin-top: 56px; }
  .fact { padding: 20px 0; }
  .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  section.block { padding: 84px 0; }
  .featured-body { padding: 36px 26px 30px; }
  .featured-visual { padding: 0 26px 32px; }
  .featured-visual .platforms { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .app { padding: 24px; }
  .contact { padding: 40px 26px; border-radius: 22px; }
  footer { margin-top: 84px; }
}

/* 메뉴 맨 끝 로그인 링크 (작게) */
.nav a.nav-login { font-size: 14px; font-weight: 500; opacity: .8; }
.nav a.nav-login:hover { opacity: 1; }
.nav a.nav-login[aria-current="page"] { opacity: 1; font-weight: 700; }
@media (max-width: 760px) { .nav a.nav-login { font-size: inherit; opacity: 1; } }
