@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;800;900&display=swap");

:root {
  --navy: #061b3d;
  --navy-2: #092b64;
  --blue: #1267dd;
  --blue-2: #42b7ff;
  --ink: #0f2442;
  --muted: #64748b;
  --line: #dce8f5;
  --bg: #f4f8fd;
  --soft: #edf5ff;
  --white: #fff;
  --shadow: 0 24px 70px rgba(7, 32, 77, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.58;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 18px;
  background: rgba(5, 25, 58, .72);
  color: #fff;
  backdrop-filter: blur(20px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; font-size: 20px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(18, 103, 221, .34);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.site-header nav { display: flex; gap: 26px; color: rgba(255,255,255,.82); font-size: 14px; font-weight: 800; }
.header-cta {
  padding: 11px 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 860px;
  overflow: hidden;
  padding: 126px 0 52px;
  color: #fff;
  background: radial-gradient(circle at 72% 36%, #1267dd 0, #092b64 28%, #061b3d 68%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,27,61,.94) 0%, rgba(6,27,61,.58) 52%, rgba(6,27,61,.9) 100%),
    url("/v2/app-intro/assets/web-hybrid-reference.png") center / cover no-repeat;
  opacity: .32;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 56px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.35fr);
  gap: 46px;
  align-items: center;
}
.hero-copy,
.hero-visual {
  min-width: 0;
}
.eyebrow {
  margin: 0 0 18px;
  color: #7bd7ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}
.hero h1 {
  margin: 0;
  font-size: clamp(54px, 6.2vw, 92px);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 900;
}
.hero-text {
  width: min(540px, 100%);
  margin: 28px 0;
  color: rgba(255,255,255,.84);
  font-size: 19px;
  line-height: 1.85;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.primary-btn, .ghost-btn, .outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 15px;
}
.primary-btn { background: #fff; color: var(--navy); }
.primary-btn.dark { background: var(--blue); color: #fff; }
.ghost-btn { border: 1px solid rgba(255,255,255,.32); color: #fff; }
.outline-btn { border: 1px solid #c8daed; color: var(--navy); background: #fff; }
.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(640px, 100%);
}
.hero-points span {
  min-height: 94px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.76);
  font-size: 13px;
}
.hero-points b { display: block; color: #fff; font-size: 16px; margin-bottom: 6px; }

.hero-visual {
  position: relative;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  min-height: 560px;
  max-height: 640px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  background: rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-app-showcase {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(170px, .58fr);
  gap: 22px;
  align-items: end;
  padding: 34px;
  background:
    radial-gradient(circle at 72% 30%, rgba(66,183,255,.24), transparent 34%),
    linear-gradient(145deg, rgba(9,43,100,.92), rgba(3,17,41,.74));
}
.hero-screen {
  min-width: 0;
  overflow: hidden;
  border: 8px solid #071b36;
  border-radius: 30px;
  background: #eef5ff;
  box-shadow: 0 22px 52px rgba(0,0,0,.32);
}
.hero-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-screen-main {
  height: 500px;
}
.hero-screen-side {
  height: 430px;
  margin-bottom: 36px;
}
.floating-panel {
  position: absolute;
  left: 5%;
  bottom: 6%;
  width: min(300px, 38%);
  padding: 20px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  background: rgba(3, 23, 55, .84);
}
.floating-panel b { display: block; font-size: 22px; }
.floating-panel span { color: rgba(255,255,255,.74); font-size: 13px; }

.stats-section {
  width: min(1180px, calc(100% - 32px));
  margin: -72px auto 0;
  position: relative;
  z-index: 5;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 22px;
  background: rgba(8, 39, 89, .92);
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stats-grid article {
  padding: 28px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.stats-grid article:last-child { border-right: 0; }
.stats-grid span, .stats-grid small { display: block; color: rgba(255,255,255,.7); }
.stats-grid strong { display: block; margin: 8px 0 4px; font-size: 34px; line-height: 1; }

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0;
}
.section-head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 36px;
}
.section-head.narrow { max-width: 790px; display: block; }
.section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.18;
  letter-spacing: 0;
  font-weight: 900;
}
.section-head > p:last-child, .web-layout p, .app-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.map-service-section {
  width: 100%;
  max-width: none;
  padding: 110px max(32px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, #f4f8fd 0%, #eaf3ff 100%);
}
.map-service-layout {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 52px;
  align-items: center;
}
.map-service-copy h2 {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.18;
  font-weight: 900;
}
.map-service-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}
.map-service-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.map-service-preview {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #dfe8f1;
  box-shadow: 0 22px 60px rgba(10, 49, 95, .12);
}
.map-service-preview img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: top center;
}
.map-service-preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(6,27,61,.82), transparent);
}
.map-service-preview span {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 1;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}
.special-service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.special-service-grid article {
  min-height: 138px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.82);
}
.special-service-grid b {
  display: block;
  color: var(--navy);
  font-size: 18px;
}
.special-service-grid span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.service-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 16px;
}
.service-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15,36,66,.06);
}
.service-card.main-card {
  grid-row: span 2;
  min-height: 536px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  padding: 0;
}
.main-card img { width: 100%; height: 380px; object-fit: cover; object-position: top; }
.main-card div { padding: 26px; }
.service-card span:not(.icon-box) { color: var(--blue); font-weight: 900; font-size: 12px; }
.icon-box {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--soft);
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
}
.service-card h3 {
  margin: 26px 0 10px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.28;
}
.service-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

.web-section {
  width: 100%;
  max-width: none;
  padding: 110px max(32px, calc((100% - 1180px) / 2));
  background: #fff;
}
.web-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 76px;
  align-items: center;
}
.url-sample {
  margin-top: 28px;
  padding: 20px;
  border-radius: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.url-sample span { display: block; color: var(--muted); font-size: 13px; font-weight: 800; }
.url-sample b { display: block; margin-top: 6px; color: var(--blue); font-size: clamp(18px, 2.1vw, 26px); word-break: break-all; }
.web-flow { display: grid; gap: 14px; }
.web-flow article {
  padding: 24px 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7fbff, #edf5ff);
  border: 1px solid var(--line);
}
.web-flow b { display: block; color: var(--navy); font-size: 22px; }
.web-flow span { display: block; margin-top: 6px; color: var(--muted); }

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.partner-grid article {
  min-height: 210px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
}
.partner-grid strong { display: block; color: var(--navy); font-size: 22px; line-height: 1.25; }
.partner-grid p { margin: 28px 0 0; color: var(--muted); font-size: 15px; }
.partner-cta {
  margin-top: 16px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.partner-cta span { display: block; color: #7bd7ff; font-size: 13px; font-weight: 900; }
.partner-cta b { display: block; margin-top: 6px; font-size: 25px; }
.partner-cta a { flex: 0 0 auto; padding: 14px 18px; border-radius: 14px; background: #fff; color: var(--navy); font-weight: 900; }

.app-section {
  width: 100%;
  max-width: none;
  padding: 110px max(32px, calc((100% - 1180px) / 2));
  background: #eaf3ff;
  overflow: hidden;
}
.app-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.phone-stack { position: relative; min-height: 580px; }
.phone-shot {
  position: absolute;
  width: min(300px, 42vw);
  border: 9px solid #081a33;
  border-radius: 34px;
  background: #081a33;
  box-shadow: 0 28px 72px rgba(8,26,51,.22);
}
.phone-shot.one { left: 8%; top: 0; }
.phone-shot.two { right: 12%; bottom: 0; }
.app-main-preview {
  overflow: hidden;
  width: min(340px, 86vw);
  aspect-ratio: 9 / 19.2;
  margin: 0 auto;
  border: 8px solid #081a33;
  border-radius: 36px;
  background: #eef5ff;
  box-shadow: 0 28px 72px rgba(8,26,51,.22);
}
.app-main-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.app-copy h2 {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.18;
}

.bottom-banner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 86px;
  padding: 48px;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(6,27,61,.92), rgba(6,27,61,.38)),
    url("/v2/app-intro/assets/app-hospital-detail.png") center / cover no-repeat;
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}
.bottom-banner h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.2; }
.bottom-banner a { padding: 14px 18px; border-radius: 14px; background: #fff; color: var(--navy); font-weight: 900; white-space: nowrap; }

.site-footer {
  padding: 42px 0;
  background: #071a37;
  color: rgba(255,255,255,.7);
}
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.site-footer .brand { color: #fff; }
.site-footer p { margin: 0; font-size: 13px; }

.partner-popup {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: min(320px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(190, 214, 239, .94);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  box-shadow: 0 22px 54px rgba(6, 27, 61, .18);
}
.partner-popup[hidden] { display: none; }
.partner-popup span {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.partner-popup strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.32;
}
.partner-popup p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.popup-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 15px;
  background: #edf5ff;
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
}
.popup-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.popup-actions a,
.popup-actions button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 13px;
}
.popup-actions a {
  border: 0;
  background: var(--blue);
  color: #fff;
}
.popup-actions button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 460px; max-height: none; }
  .hero-screen-main { height: 420px; }
  .hero-screen-side { height: 360px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .partner-grid, .stats-grid, .special-service-grid { grid-template-columns: repeat(2, 1fr); }
  .map-service-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header {
    top: 10px;
    height: 60px;
    border-radius: 14px;
  }
  .site-header nav { display: none; }
  .brand { font-size: 18px; }
  .brand-mark { width: 38px; height: 38px; }
  .header-cta { padding: 10px 12px; }
  .hero {
    min-height: auto;
    padding: 96px 0 28px;
  }
  .hero-inner { width: calc(100% - 28px); gap: 34px; }
  .hero h1 { font-size: clamp(44px, 14vw, 64px); }
  .hero-text { font-size: 16px; }
  .hero-points { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; border-radius: 20px; }
  .hero-app-showcase {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .hero-screen-main { height: 300px; }
  .hero-screen-side { display: none; }
  .floating-panel {
    display: none;
  }
  .stats-section { margin-top: 16px; }
  .stats-grid { grid-template-columns: 1fr; border-radius: 18px; }
  .stats-grid article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding: 22px; }
  .section { padding: 74px 0; }
  .section-head, .web-layout, .app-layout { grid-template-columns: 1fr; gap: 28px; }
  .section h2, .app-copy h2, .map-service-copy h2 { font-size: 34px; }
  .service-grid, .partner-grid, .special-service-grid { grid-template-columns: 1fr; }
  .map-service-section { padding: 74px 16px; }
  .map-service-preview,
  .map-service-preview img { min-height: 280px; }
  .map-service-preview span { left: 18px; bottom: 16px; font-size: 18px; }
  .service-card.main-card { min-height: 0; }
  .main-card img { height: 300px; }
  .partner-cta, .bottom-banner { display: block; padding: 28px; }
  .partner-cta a, .bottom-banner a { display: inline-flex; margin-top: 18px; }
  .phone-stack { min-height: 500px; }
  .phone-shot { width: min(260px, 72vw); }
  .phone-shot.one { left: 0; }
  .phone-shot.two { right: 0; }
  .app-main-preview {
    width: min(320px, 86vw);
    border-width: 7px;
    border-radius: 28px;
  }
  .partner-popup {
    right: 12px;
    bottom: 12px;
    width: min(330px, calc(100vw - 24px));
    padding: 14px;
  }
  .partner-popup strong { font-size: 15px; padding-right: 24px; }
  .partner-popup p { display: none; }
  .popup-actions a,
  .popup-actions button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }
}
