/* gring 본사이트 상단바 CSS를 그대로 뽑아온 것 — 손으로 고치지 말고
   본사이트에서 다시 추출해 덮어쓸 것. */

/* =====================================================
   gring — Design System Tokens
   ===================================================== */
:root {
  /* Brand */
  --orange: #F58220;
  --orange-light: #FF9D45;
  --orange-dark: #D96A0F;
  --mocha: #A8754D;
  --mocha-dark: #8E6240;

  /* Beige */
  --beige-light: #FAF6EE;
  --beige-mid: #F4ECE0;
  --beige-deep: #EDE3D2;

  /* Brown */
  --brown-dark: #2A1B0F;
  --brown-darker: #1A1009;
  --brown-mid: #8E7A5C;
  --brown-light: #B7A28A;

  /* macOS labels */
  --label-1: #1D1D1F;
  --label-2: #6E6E73;
  --label-3: #86868B;
  --bg-card: #FFFFFF;
  --separator: rgba(60, 60, 67, 0.12);

  /* Easings */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.5, 1.4, 0.6, 1);

  /* Radii */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Shadows (macOS multi-layer) */
  --shadow-card:
    0 0 0 0.5px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-cta: 0 6px 16px rgba(245, 130, 32, 0.32);
  --shadow-cta-hover: 0 9px 22px rgba(245, 130, 32, 0.4);
}


/* =====================================================
   Brand wordmark — Playwrite ID (handwriting)
   font-style: normal forced to prevent italic rendering
   ===================================================== */

/* 🆕 브랜드 로고 이미지 (곡면 심볼) */
.brand-logo-img {
  height: 44px;
  width: auto;
  display: block;
  vertical-align: middle;
}

.nav.scrolled .brand-logo-img,
.nav.has-mega-open .brand-logo-img { height: 44px; }


.brand {
  font-family: 'Playwrite ID', cursive;
  font-weight: 400;
  font-style: normal !important;
  letter-spacing: 0;
  display: inline-block;
  text-decoration: none;
  line-height: 1;
  color: #ffffff;
}

/* nav가 scrolled 또는 mega 열림 상태 — 흰 배경이므로 로고 검정 */
.nav.scrolled .brand,
.nav.has-mega-open .brand {
  color: #000000;
}

.brand .g {
  font-family: 'Playwrite ID', cursive;
  font-style: normal !important;
  font-weight: 400;
  font-size: 1em;
  letter-spacing: 0;
  display: inline-block;
  color: inherit;
  -webkit-font-smoothing: antialiased;
}

.brand .rest {
  font-style: normal !important;
  color: inherit;
}


/* =====================================================
   Navbar — Tesla-style flat (centered menu, no dividers)
   ===================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s var(--ease-out);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}


/* Tesla-style white nav — scrolled OR mega menu open: white bg + black text */
.nav.scrolled .nav-link,
.nav.has-mega-open .nav-link,
.nav.scrolled .nav-login,
.nav.has-mega-open .nav-login,
.nav.scrolled .nav-cta,
.nav.has-mega-open .nav-cta,
.nav.scrolled .nav-icon,
.nav.has-mega-open .nav-icon {
  color: #000 !important;
}

.nav.scrolled .nav-link:hover,
.nav.has-mega-open .nav-link:hover {
  color: #000 !important;
  opacity: 0.6;
}

.nav.scrolled .nav-icon:hover,
.nav.has-mega-open .nav-icon:hover {
  opacity: 0.6;
}

.nav.scrolled .nav-cta:hover,
.nav.has-mega-open .nav-cta:hover {
  color: #000 !important;
  opacity: 0.6;
}

.nav.scrolled .nav-login:hover,
.nav.has-mega-open .nav-login:hover {
  opacity: 0.5;
}

.nav.scrolled .burger span,
.nav.has-mega-open .burger span {
  background: #000;
}


.nav .nav-link { color: #ffffff; }

.nav .nav-link:hover { color: #ffffff; opacity: 0.7; }

.nav .burger span { background: #fff; }


.nav-inner {
  max-width: none;
  margin: 0 auto;
  padding: 28px 36px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (max-width: 900px){

  .nav-inner { padding: 14px 24px; }
}


.nav-brand {
  font-size: clamp(15px, 1.15vw, 17px);
  flex-shrink: 0;
  transform: translateY(-8px);
}


/* Center menu — Tesla style: just spacing, no dividers */
.nav-center {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-center .nav-link {
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.005em;
  font-size: 13px;
  transition: opacity 0.2s var(--ease-out);
  white-space: nowrap;
}


.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}


/* Tesla-style minimal icon set */
.nav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.2s var(--ease-out);
}

.nav-icon:hover { opacity: 0.7; }

.nav-icon svg { width: 100%; height: 100%; }


.nav-cta {
  background: transparent;
  color: #ffffff !important;
  padding: 0;
  border-radius: 0;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s var(--ease-out);
}

.nav-cta:hover {
  opacity: 0.7;
  color: #fff !important;
}


/* 점주 로그인 — nav-link 보조 톤 (시작하기보다 옅음) */
.nav-login {
  font-size: 14px;
  font-weight: 500;
  color: #fff !important;
  opacity: 0.85;
  text-decoration: none;
  transition: opacity 0.2s var(--ease-out);
}

.nav-login:hover {
  opacity: 0.6;
}


/* Burger (mobile) */
.burger {
  display: none;
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease-out);
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }

.burger.open span:nth-child(2) { opacity: 0; }

.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* Mobile menu sheet — fullscreen black overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #000000;
  padding: 128px 32px 40px;
  z-index: 99;
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease-out);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.mobile-menu.open { transform: translateY(0); }

.mobile-menu .nav-link {
  display: block;
  padding: 18px 4px;
  font-size:20px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu .nav-link:last-of-type { border-bottom: none; }

.mobile-menu .nav-cta {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 0;
  font-size:20px;
  font-weight: 600;
  align-self: flex-start;
}


/* === 모바일 메뉴 통일 (회원가입 캡슐 → 텍스트로) === */
.mobile-menu .nav-link-cta {
  background: transparent !important;
  color: #ffffff !important;
  padding: 18px 4px !important;
  border-radius: 0 !important;
  font-size:20px !important;
  font-weight: 500 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: block !important;
  width: auto !important;
}

.mobile-menu .nav-link-cta:hover {
  background: transparent !important;
  opacity: 0.7;
}


/* === 모바일 메뉴 닫기 버튼 위치 === */
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 100;
}




/* === sub-panel 잘림 해결 — 모든 child를 세로 배치 강제 === */
.mobile-sub-content > * {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}


/* mega-menu-inner: 데스크탑은 가로 (products + side) → 모바일은 세로 */
.mobile-sub-content .mega-menu-inner,
.mobile-sub-content .mega-menu-inner-wide {
  display: block !important;
  grid-template-columns: 1fr !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}


/* mega-menu-side: 우측 보조 메뉴 → 카드 아래 세로 리스트 (Tesla 패턴) */
.mobile-sub-content .mega-menu-side {
  display: block !important;
  width: 100% !important;
  margin-top: 16px !important;
  padding: 24px 0 0 !important;
  border-left: none !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.mobile-sub-content .mega-menu-side-title {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: rgba(0, 0, 0, 0.55) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 8px !important;
  padding: 8px 0 !important;
}

.mobile-sub-content .mega-menu-side a {
  display: block !important;
  padding: 14px 0 !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #000 !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.mobile-sub-content .mega-menu-side a:last-child {
  border-bottom: none !important;
}

.mobile-sub-content .mega-menu-side-divider {
  display: none !important;
}

.mobile-sub-content .mega-menu-side-cta {
  color: #3457dc !important;
  margin-top: 8px !important;
}


/* 그리드는 2컬럼 (이전과 동일하지만 강제) */
.mobile-sub-content .mega-menu-products {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  width: 100% !important;
}

.mobile-sub-content .solutions-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  width: 100% !important;
}


/* === Tesla 스타일 sub-panel === */
.mobile-menu .has-sub {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.mobile-menu .has-sub .mobile-arrow {
  font-size:26px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
  margin-left: 12px;
}

.mobile-menu .has-sub:hover .mobile-arrow {
  color: #fff;
}


/* sub-panel */
.mobile-sub-panel {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-sub-panel.open {
  transform: translateX(0);
}

.mobile-sub-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-sub-back {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
  display: flex;
  align-items: center;
  color: #000;
}

.mobile-sub-title {
  font-size: 15px;
  font-weight: 600;
  color: #000;
}

.mobile-sub-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
  color: #000;
}

.mobile-sub-content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 24px 20px 40px;
  background: #fff;
}


/* sub-panel 안의 mega-menu 콘텐츠 모바일 친화적 */
.mobile-sub-content .mega-menu-eyebrow {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
  padding: 0;
}

.mobile-sub-content .mega-menu-inner,
.mobile-sub-content .mega-menu-inner-wide {
  padding: 0 !important;
  max-width: none !important;
}

.mobile-sub-content .mega-menu-products,
.mobile-sub-content .solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
}

.mobile-sub-content .mega-menu-product,
.mobile-sub-content .solution-card {
  display: block !important;
}

.mobile-sub-content .mega-menu-product-image,
.mobile-sub-content .solution-card-image {
  aspect-ratio: 1 !important;
  background: #ffffff !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px !important;
}

.mobile-sub-content .mega-menu-product-image img,
.mobile-sub-content .solution-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  mix-blend-mode: multiply;
}

.mobile-sub-content .mega-menu-product-name,
.mobile-sub-content .solution-name {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #000 !important;
  text-align: center !important;
  margin-bottom: 6px !important;
}

.mobile-sub-content .solution-desc {
  font-size: 12px !important;
  color: rgba(0, 0, 0, 0.6) !important;
  text-align: center !important;
}

.mobile-sub-content .mega-menu-product-links {
  display: flex !important;
  justify-content: center !important;
  gap: 14px !important;
  margin-top: 4px !important;
}

.mobile-sub-content .mega-menu-product-links a {
  font-size: 13px !important;
  color: #3457dc !important;
  text-decoration: underline !important;
}

.mobile-sub-content .mega-menu-product-link {
  text-decoration: none !important;
}
@media (max-width: 860px){

  .nav-center { display: none; }

  .nav-right { display: none; }

  .burger { display: flex; }

  .nav-inner { padding: 16px 20px; }

  .nav-brand { font-size: 22px; }
}

@keyframes scroll-pulse {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(72px); opacity: 0; }
}


@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}


/* =====================================================
   Mega menu (Tesla-style hover dropdown)
   ===================================================== */
.mega-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  opacity: 0;
  visibility: hidden;
  z-index: 80;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
  pointer-events: none;
}

.mega-backdrop.show {
  opacity: 1;
  visibility: visible;
}


.mega-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 140px 40px 80px;
  z-index: 95;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s var(--ease-out),
              transform 0.3s var(--ease-out),
              visibility 0.3s;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.mega-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


.mega-menu-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 60px;
  align-items: start;
}


/* product 메가메뉴: 사이드 제거됨 → 제품 영역이 가로 전체 사용 */
#mega-product .mega-menu-inner { grid-template-columns: 1fr; }

/* 모델(Models) 메가 (전파본) */
#mega-model .mega-menu-inner { grid-template-columns: repeat(2, minmax(0,280px)) minmax(0,240px); align-items:center; justify-content: center; gap: clamp(32px,4vw,56px); max-width: 1180px; }
@media (max-width: 900px){
 #mega-model .mega-menu-inner { grid-template-columns: repeat(2, minmax(0,300px)); }
}

.model-item { display: flex; flex-direction: column; align-items: center; text-align: center; }

.model-img { display: block; width: 100%; margin-bottom: 14px; }

.model-img img { width: 100%; height: 200px; object-fit: contain; display: block; transition: transform 0.4s ease; }

.model-item:hover .model-img img { transform: scale(1.04); }

.model-name { text-decoration:none; display:block; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: #1d1d1f; margin: 0 0 8px; }

.model-desc { font-size: 14px; line-height: 1.55; color: rgba(0,0,0,0.5); margin: 0 0 16px; }

.model-links { display: flex; gap: 24px; justify-content: center; }

.model-links a { font-size: 14px; font-weight: 600; color: #3457dc; text-decoration: none; transition: opacity 0.15s ease; }

.model-links a:hover { opacity: 0.6; }

.mobile-sub-content .model-mega-inner { display: flex; flex-direction: column; gap: 0; padding: 8px 0 40px; }

.mobile-sub-content .model-item { align-items: center; text-align: center; padding: 40px 0; border-bottom: 1px solid rgba(0,0,0,0.1); }

.mobile-sub-content .model-item:last-child { border-bottom: none; }

.mobile-sub-content .model-img { width: 100%; margin-bottom: 14px; }

.mobile-sub-content .model-img img { width: 100%; height: 140px; object-fit: contain; display: block; }

.mobile-sub-content .model-name { text-decoration:none; display:block; font-size: 21px; }

/* 모바일 서브패널 — 「함께 쓰는 제품」
   ⚠️ .model-more 가 마지막 자식이 되면서 그링 Pro 의 :last-child 규칙이 풀려
      구분선이 두 줄로 겹쳤다. 아래에서 위쪽 한 줄을 지운다. */
.mobile-sub-content .model-item:nth-last-child(2) { border-bottom: none; }

.mobile-sub-content .model-more {
  border-left: none; border-top: 1px solid rgba(0,0,0,0.1);
  align-self: auto; padding: 30px 0 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 18px;
  align-items: start; text-align: center;
}

.mobile-sub-content .model-more-eyebrow { grid-column: 1 / -1; text-align: center; margin: 0 0 6px; }

.mobile-sub-content .model-more-link { align-items: center; text-align: center; }

.mobile-sub-content .model-more-link b { font-size: 18px; }

.mobile-sub-content .model-more-link span { font-size: 13px; line-height: 1.45; }

.mobile-sub-content .model-links { justify-content: center; }
@media (max-width: 760px){
 #mega-model .mega-menu-inner { grid-template-columns: 1fr; gap: 36px; }
 .model-img img { height: 160px; }
}



.mega-menu-products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}


.mega-menu-product {
  text-align: center;
}

.mega-menu-product-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s var(--ease-out);
}

.mega-menu-product-link:hover { opacity: 0.85; }


.mega-menu-product-image {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 10px;
  box-sizing: border-box;
  color: rgba(0, 0, 0, 0.75);
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
}

.mega-menu-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}

.mega-menu-product-image svg {
  width: 64px;
  height: 64px;
}

.mega-menu-product-name {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.mega-menu-product-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
}

.mega-menu-product-links a {
  color: rgba(0, 0, 0, 0.65);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease-out);
}

.mega-menu-product-links a:hover { color: #000; }


.mega-menu-side {
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mega-menu-side a {
  color: rgba(0, 0, 0, 0.75);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.2s var(--ease-out);
}

.mega-menu-side a:hover { color: #000; }


/* When a mega menu is open, nav switches to Tesla white tone */
.nav.has-mega-open {
  background: #ffffff;
  box-shadow: none;
}


/* ============= NEW: Mega menu eyebrow + side title + divider ============= */
.mega-menu-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
  margin: 0 auto 28px;
  max-width: 1400px;
}

.mega-menu-side-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 8px;
}

.mega-menu-side-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 8px 0;
}

.mega-menu-side-cta {
  font-weight: 600 !important;
  color: #000 !important;
}


/* ============= Solutions mega — 7 industry cards grid ============= */
.mega-menu-inner-wide {
  display: block;
  max-width: 1400px;
}


/* ============= Small mega menu (Company / Download) ============= */
.mega-menu-small { padding: 120px 40px 60px; }

.mega-menu-inner-small {
  max-width: 1400px;
  margin: 0 auto;
}

.mega-small-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 220px));
  gap: 16px;
}

.mega-small-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: 10px;
  text-decoration: none;
  background: #fafafa;
  transition: background 0.18s var(--ease-out);
}

.mega-small-link:hover { background: #f0f0f0; }

.mega-small-link-name {
  font-size: 15px;
  font-weight: 600;
  color: #000;
  letter-spacing: -0.01em;
}

.mega-small-link-desc {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
}
@media (max-width: 860px){

  .mega-menu, .mega-backdrop { display: none !important; }
}


/* 회원가입 CTA — 파란 알약 */
.nav-link-cta {
  background: #3457dc;
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.2s;
}

.nav-link-cta:hover {
  background: #2a48b8;
  opacity: 1 !important;
}

.nav.scrolled .nav-link-cta,
.nav.has-mega-open .nav-link-cta {
  background: #3457dc;
  color: #ffffff !important;
}


/* === Tesla 톤 모바일 메뉴 (흰 배경 + 검정 글씨 + 구분선 X) === */
.mobile-menu {
  background: #ffffff !important;
  padding: 128px 32px 40px !important;
}

.mobile-menu .nav-link {
  color: #000 !important;
  border-bottom: none !important;
  font-size:20px !important;
  font-weight: 600 !important;
  padding: 16px 4px !important;
  letter-spacing: -0.01em !important;
}

.mobile-menu .nav-link-cta {
  background: transparent !important;
  color: #000 !important;
  border-bottom: none !important;
  font-size:20px !important;
  font-weight: 600 !important;
  padding: 16px 4px !important;
  border-radius: 0 !important;
  width: auto !important;
  display: block !important;
}

.mobile-menu .nav-link-cta:hover {
  background: transparent !important;
  opacity: 0.6;
}

.mobile-menu .nav-cta {
  color: #000 !important;
  font-size:20px !important;
  font-weight: 600 !important;
  margin-top: 24px !important;
  padding: 16px 4px !important;
}

.mobile-menu .has-sub .mobile-arrow {
  color: rgba(0, 0, 0, 0.62) !important;
  font-size:34px !important;
  font-weight:400 !important;
  line-height:1 !important;
  margin-left:12px !important;
}

.mobile-menu .has-sub:hover .mobile-arrow {
  color: #1d1d1f !important;
}


/* 햄버거 열렸을 때 (X 표시) — 흰 배경이니 검정 유지 */
.burger.open span {
  background: #000 !important;
}


/* 모바일 메뉴 안 close 버튼 (있다면) */
.mobile-menu-close {
  color: #000 !important;
}



/* === burger 버튼 → Tesla 정확한 톤 (배경에 따라 자동 분기) === */
.burger {
  /* 어두운 hero 위 (기본 상태) — 흰 그라데이션 반투명 블러 */
  width: auto !important;
  height: auto !important;
  padding: 10px 18px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.10)) !important;
  border-radius: 6px 0 0 6px !important;  /* 좌측만 라운드, 우측 화면 가장자리 직각 */
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  border: none;
  cursor: pointer;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  letter-spacing: -0.005em !important;
  margin-right: -24px !important;  /* 화면 가장자리 붙음 */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: background 0.3s, color 0.3s !important;
}

.burger:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.18)) !important;
}


/* 기존 햄버거 막대 3개 숨김 */
.burger span {
  display: none !important;
}


/* "Menu" 텍스트 */
.burger::before {
  content: 'Menu';
  display: inline-block;
}


/* 메뉴 열렸을 때 → ✕ */
.burger.open::before {
  content: '✕';
  font-size: 28px;
  font-weight: 400;
  line-height: 1; display:flex; align-items:center; justify-content:center; min-width:44px; min-height:44px;
}


/* === nav가 흰 배경일 때 (scrolled 또는 hero 없는 페이지) === */
/* 박스 없이 검정 글자만 */
.nav.scrolled .burger,
.nav.has-mega-open .burger {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #000000 !important;
  margin-right: 0 !important;  /* 가장자리 붙는 효과 제거 */
  padding: 10px 0 !important;  /* 좌우 패딩 줄임 */
  border-radius: 0 !important;
}

.nav.scrolled .burger:hover,
.nav.has-mega-open .burger:hover {
  background: transparent !important;
  opacity: 0.6;
}


/* 메뉴 열린 상태에서는 항상 흰 배경 메뉴 위에 떠있으니 검정 글자 */
.burger.open {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #000000 !important;
  margin-right: 0 !important;
  padding: 10px 0 !important;
  border-radius: 0 !important;
}




/* ── 제품 드롭다운 하단: 함께 쓰는 제품 ── */
/* 데스크톱: 모델 카드 오른쪽에 세로 열로 붙는다(테슬라 Vehicles 방식).
   좁아지면 아래 미디어쿼리에서 다시 아래쪽 가로 배치로 돌아간다. */
.model-more{ align-self:stretch; justify-content:flex-start; padding:0 0 2px 40px;
  border-left:1px solid #e5e5ea;
  display:flex; flex-direction:column; gap:24px; align-items:flex-start; }

.model-more-eyebrow{ margin:0 0 2px; font-size:12px; font-weight:600;
  letter-spacing:0.12em; color:#86868b; }

.model-more-link{ display:flex; flex-direction:column; gap:3px; text-decoration:none; }

.model-more-link b{ font-size:20px; font-weight:600; letter-spacing:-0.025em; color:#1d1d1f; }

.model-more-link span{ font-size:14px; color:#86868b; letter-spacing:-0.01em; }

.model-more-link:hover b{ color:#3457dc; }
@media (max-width:900px){

  .model-more{ grid-column:1 / -1; align-self:auto; border-left:none;
    border-top:1px solid #e5e5ea; margin-top:6px; padding:22px 0 4px;
    flex-direction:row; flex-wrap:wrap; gap:10px 40px; align-items:flex-start; }

  .model-more-eyebrow{ width:100%; margin:0 0 4px; }
}
@media (max-width:760px){
 .model-more{ flex-direction:column; gap:18px; }
}

/* ── 뒤쪽 style 블록에 있던 상단바 규칙 ──
   ⚠️ 본사이트는 상단바 CSS가 style 태그 8개에 흩어져 있다.
   첫 블록만 뽑으면 모바일 메뉴 지구본·회원가입 알약 규칙이 빠져
   아이콘이 원본 크기로 거대하게 나온다. 전 블록을 훑을 것. */

  /* 메가메뉴·일러스트 카드 배경 제거 — Tesla 스타일 (박스 없이 흰 배경) */
  .mega-menu-product-image,
  .solution-card-image,
  .modes-card-image,
  .mobile-sub-content .mega-menu-product-image,
  .mobile-sub-content .solution-card-image {
    background: #ffffff !important;
    border-radius: 0 !important;
  }

  /* 일러스트 PNG/JPG 배경이 순백(255)이 아니라 251~253 → 흰 페이지 위에
     옅은 회색 사각형으로 보임. 배경 흰색만 살짝 끌어올려 페이지에 녹아들게
     (brightness 1.04: 253→255 클램프, 선화/명암은 사실상 그대로). */
  .mega-menu-product-image img,
  .solution-card-image img,
  .modes-card-image img,
  .mobile-sub-content .mega-menu-product-image img,
  .mobile-sub-content .solution-card-image img {
    mix-blend-mode: normal !important; background: #ffffff !important; filter: brightness(1.06) contrast(1.04) !important;
  }

/* 모바일 메뉴 회원가입 알약(보이게) + 지구본 */
#mobileMenu .nav-link-cta{
  display:block !important; width:auto; align-self:flex-start;
  background:transparent !important; color:#3457dc !important; border:none !important; border-bottom:none !important;
  border-radius:0 !important; padding:16px 4px !important; margin-top:0; font-weight:600 !important;
  visibility:visible !important; opacity:1 !important;
}

#mobileMenu .nav-link-cta::after{ content:none !important; display:none !important; }

#mobileMenu .mobile-lang{
  position:absolute; left:24px; bottom:30px; width:46px; height:46px;
  display:flex; align-items:center; justify-content:center; color:#111; text-decoration:none; border:none;
}

#mobileMenu .mobile-lang svg{ width:30px; height:30px; }
