/* ===========================
   새숨메디컬 — Global Styles
   =========================== */

/* --- 커스텀 변수 (색상, 폰트 쉽게 수정 가능) --- */
:root {
  /* ✅ 브랜드 컬러 (새숨메디컬 로고 기준) */
  --brand-primary:   #162EAC;   /* 진한 파란색 — 심볼 + "새숨" */
  --brand-secondary: #A2BBE1;   /* 연한 파란색 — "메디컬" + 심볼 하단 */

  /* 배경용 다크 톤 (브랜드 primary 기반) */
  --navy-900: #090E28;
  --navy-800: #0E1640;
  --navy-700: #131D58;
  --navy-600: #1A2670;

  /* 포인트/버튼 컬러 */
  --blue-500: #162EAC;   /* = brand-primary */
  --blue-400: #2D48C8;
  --blue-300: #A2BBE1;   /* = brand-secondary */

  --white:    #FFFFFF;
  --gray-50:  #F5F7FA;
  --gray-100: #EDF0F6;
  --gray-200: #D8DDE9;
  --gray-400: #9AAAB8;
  --gray-600: #5A6A7E;
  --gray-800: #2C3A4A;

  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 16px;
  --shadow: 0 4px 32px rgba(10, 22, 40, 0.10);
  --shadow-lg: 0 8px 48px rgba(10, 22, 40, 0.16);
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: var(--font); }

/* --- 컨테이너 --- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 14px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  padding: 10px 0;
  background: rgba(6, 14, 27, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(74, 143, 231, 0.12);
}
.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: var(--transition);
}
.nav-logo:hover .logo-img { opacity: 0.85; }

/* 네비게이션 / footer (다크 배경) — 흰 컨테이너로 로고 가독성 확보 */
.navbar .logo-img,
.footer-brand .logo-img {
  background: var(--white);
  padding: 7px 18px;
  border-radius: 10px;
  height: 56px;
}

/* 하위 호환용 — 기존 SVG 로고 숨김 */
.logo-mark { display: none; }
.logo-text { display: none; }
.logo-accent { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.nav-cta {
  background: var(--blue-400) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
}
.nav-cta:hover {
  background: var(--blue-300) !important;
  transform: translateY(-1px);
}

/* 모바일 메뉴 버튼 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* 배경 서브틀 도트 패턴 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(162,187,225,0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 120px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  min-height: 100vh;
}

/* 히어로 텍스트 */
.hero-text { position: relative; z-index: 2; }

.hero-sub {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--blue-500);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-title {
  font-size: clamp(2.8rem, 4.5vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--navy-900);
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero-title .line {
  display: block;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-title .line:nth-child(1) { animation-delay: 0.45s; }
.hero-title .line:nth-child(2) { animation-delay: 0.60s; }
.hero-title .line:nth-child(3) { animation-delay: 0.75s; }

.hero-accent {
  color: var(--blue-500);
  position: relative;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.05s both;
}

/* 3D 캔버스 */
.hero-canvas-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 560px;
}
#blobCanvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 560px;
  opacity: 0;
  animation: fadeIn 1.4s ease 0.8s both;
}

/* 스크롤 인디케이터 */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(22,46,172,0.35);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s both;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(22,46,172,0.4), transparent);
  animation: scrollPulse 2.5s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.4; }
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-400);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-300);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 143, 231, 0.35);
}
.btn-secondary {
  background: rgba(22,46,172,0.07);
  color: var(--navy-800);
  border-color: rgba(22,46,172,0.18);
}
.btn-secondary:hover {
  background: rgba(22,46,172,0.13);
  border-color: rgba(22,46,172,0.3);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--gray-200);
}
.btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--blue-400);
  color: var(--blue-500);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ===========================
   STATS SECTION
   =========================== */
.stats-section {
  background: var(--white);
  padding: 72px 0;
  border-bottom: 1px solid var(--gray-100);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 32px 24px;
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--gray-200);
}
.stat-number-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 8px;
}
.stat-number {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-unit {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-400);
}
.stat-label {
  font-size: 0.9rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* ===========================
   SECTION COMMON
   =========================== */
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 20px;
}
.section-desc {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 520px;
}
.section-header {
  margin-bottom: 56px;
}

/* ===========================
   SERVICES SECTION
   =========================== */
.services-section {
  padding: 100px 0;
  background: var(--gray-50);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-200);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
}
.service-icon svg { width: 26px; height: 26px; }

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 28px;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue-500);
  letter-spacing: 0.01em;
  transition: var(--transition);
}
.service-link:hover { gap: 10px; color: var(--blue-400); }

/* ===========================
   PROCESS SECTION
   =========================== */
.process-section {
  padding: 100px 0;
  background: var(--white);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: var(--gray-200);
}
.process-step {
  text-align: center;
  position: relative;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}
.process-step h3 {
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 10px;
}
.process-step p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ===========================
   WHY SECTION
   =========================== */
.why-section {
  padding: 100px 0;
  background: var(--navy-800);
}
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why-text .section-label { color: var(--blue-300); }
.why-text .section-title { color: var(--white); }
.why-text .section-desc { color: rgba(255,255,255,0.55); }
.why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}
.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-item-icon {
  width: 40px; height: 40px;
  background: rgba(74,143,231,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.why-item-icon svg { width: 20px; height: 20px; }
.why-item h4 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.why-item p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}
.why-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}
.why-card:hover { background: rgba(74,143,231,0.1); border-color: rgba(74,143,231,0.25); }
.why-card-num {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}
.why-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(74,143,231,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 44px;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.contact-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
}
.contact-icon {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.contact-link {
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  transition: var(--transition);
}
.contact-link:hover { color: var(--white); }

/* ===========================
   FOOTER
   =========================== */
footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo-text { font-size: 1.15rem; }
.footer-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.footer-col li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.25);
}

/* ===========================
   SERVICE PAGE
   =========================== */
.page-hero {
  background: var(--navy-900);
  padding: 160px 0 80px;
}
.page-hero .section-label { color: var(--blue-300); }
.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 540px;
}

.service-detail-section {
  padding: 80px 0;
}
.service-detail-section:nth-child(even) {
  background: var(--gray-50);
}
.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.service-detail-inner.reverse {
  direction: rtl;
}
.service-detail-inner.reverse > * { direction: ltr; }
.service-detail-visual {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  border-radius: 20px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.service-detail-visual .visual-icon {
  font-size: 5rem;
  opacity: 0.15;
  position: absolute;
  bottom: -16px; right: 20px;
}
.detail-badge {
  display: inline-block;
  background: rgba(74,143,231,0.15);
  color: var(--blue-300);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.detail-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.detail-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.feature-dot {
  width: 8px; height: 8px;
  background: var(--blue-400);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}
.detail-feature-item p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===========================
   FORM PAGES
   =========================== */
.form-page-hero {
  background: var(--navy-900);
  padding: 140px 0 60px;
}
.form-page-hero .page-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74,143,231,0.12);
  border: 1px solid rgba(74,143,231,0.25);
  color: var(--blue-300);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.form-page-hero h1 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.form-page-hero p {
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
}

.form-section {
  padding: 72px 0 100px;
  background: var(--gray-50);
}

/* 구글 폼 임베드 래퍼 */
.gform-wrap {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 8px;
}
.gform-wrap iframe {
  display: block;
  border: none;
  width: 100%;
  min-height: 2400px;
  border-radius: 14px;
}
.form-card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--gray-100);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.form-header {
  background: var(--navy-800);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.form-header-icon {
  width: 42px; height: 42px;
  background: rgba(74,143,231,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.form-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}
.form-header p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

.form-body { padding: 40px; }

.form-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-100);
}
.form-group-title:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-row.single { grid-template-columns: 1fr; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
}
.form-group label .required {
  color: var(--blue-400);
  margin-left: 3px;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.93rem;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(74,143,231,0.12);
}
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239AAAB8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 14px) center;
  padding-right: 40px;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.input-hint {
  font-size: 0.78rem;
  color: var(--gray-400);
}

/* 라디오/체크박스 */
.radio-group, .check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.radio-item input[type="radio"],
.radio-item input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--blue-400);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}
.radio-item span {
  font-size: 0.9rem;
  color: var(--gray-700);
}

.form-notice {
  background: rgba(74,143,231,0.06);
  border: 1px solid rgba(74,143,231,0.18);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-top: 8px;
}
.form-notice strong { color: var(--blue-500); }

.form-submit-area {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.form-submit-note {
  font-size: 0.82rem;
  color: var(--gray-400);
  line-height: 1.5;
}
.btn-submit {
  background: var(--blue-400);
  color: var(--white);
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-submit:hover {
  background: var(--blue-300);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 143, 231, 0.35);
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===========================
   RESPONSIVE
   =========================== */

/* ── 태블릿 가로 (≤1100px) ── */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 130px 32px 80px;
    min-height: auto;         /* 세로 스택 시 100vh 강제 해제 */
  }
  .hero-canvas-wrapper {
    height: 360px;
    order: -1;                /* 블롭을 텍스트 위로 */
    margin-bottom: 32px;
  }
  .hero-text { text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; max-width: 480px; }

  .services-grid   { grid-template-columns: 1fr 1fr; }
  .process-grid    { grid-template-columns: 1fr 1fr; gap: 24px; }
  .process-grid::before { display: none; }
  .why-inner       { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner    { grid-template-columns: 1fr 1fr; }
  .footer-inner > :first-child { grid-column: 1 / -1; }

  .service-detail-inner { grid-template-columns: 1fr; gap: 40px; }
  .service-detail-inner.reverse { direction: ltr; }
}

/* ── 태블릿 세로 / 큰 모바일 (≤768px) ── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  /* 네비게이션 */
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: #090E28;          /* 완전 불투명 다크 배경 */
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 1002;                /* navbar(1000)보다 위 */
  }
  .nav-links.open .nav-link { font-size: 1.3rem; padding: 10px 20px; }
  .mobile-menu-btn { display: flex; position: relative; z-index: 1003; } /* 메뉴보다 위 */

  /* 히어로 */
  .hero-inner { padding: 110px 20px 64px; }
  .hero-canvas-wrapper { height: 280px; margin-bottom: 24px; }

  /* 섹션들 */
  .services-grid   { grid-template-columns: 1fr; }
  .process-grid    { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stats-grid      { grid-template-columns: 1fr; }
  .stat-item + .stat-item::before { display: none; }
  .stat-item       { border-top: 1px solid var(--gray-100); }
  .stat-item:first-child { border-top: none; }
  .why-visual      { grid-template-columns: 1fr 1fr; }

  /* Why 섹션 패딩 */
  .why-section  { padding: 72px 0; }
  .why-inner    { gap: 36px; }

  /* 서비스 디테일 */
  .service-detail-visual { height: 260px; }

  /* 푸터 */
  .footer-inner    { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom   { flex-direction: column; gap: 6px; text-align: center; }

  /* 폼 */
  .form-row        { grid-template-columns: 1fr; }
  .form-row.three  { grid-template-columns: 1fr; }
  .form-body       { padding: 24px 20px; }
  .form-header     { padding: 22px 20px; }
}

/* ── 모바일 (≤480px) ── */
@media (max-width: 480px) {
  .hero-inner      { padding: 96px 16px 56px; }
  .hero-canvas-wrapper { height: 240px; }
  .hero-buttons    { flex-direction: column; align-items: center; width: 100%; }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  .process-grid    { grid-template-columns: 1fr; }   /* 4단 → 1단 */
  .why-visual      { grid-template-columns: 1fr 1fr; }
  .cta-buttons     { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 300px; justify-content: center; }

  .service-detail-visual { height: 200px; }
  .service-detail-section { padding: 56px 0; }

  .stats-section   { padding: 48px 0; }
  .services-section, .process-section { padding: 72px 0; }

  .footer-inner    { gap: 24px; }
  .logo-img        { height: 44px; }
  .navbar .logo-img, .footer-brand .logo-img { height: 46px; padding: 6px 14px; }
}
