:root {
    --primary-color: #007bff;
    --header-height: 44px;
    --cyan:   #00D4FF;
    --violet: #8B5CF6;
    --text:   #E8F0FF;
    --muted:  rgba(232,240,255,0.45);
    --border: rgba(0,212,255,0.12);
    --bg:     #040810;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    /* height: 100%; ← 이것도 스크롤을 막을 수 있어서 제거 */
    background-color: #040810;  /* neonexsoft 동일 배경 */
    overflow-x: hidden;   /* 가로 스크롤만 숨김 */
    overflow-y: auto;     /* ★ 세로 스크롤 허용 */
}

/* ============ [마우스 커서 텍스트] ============ */
#cursorText span {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 1000;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
    mix-blend-mode: screen;
    will-change: transform;
}

/* ============ [Header & Navigation] ============ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(4, 8, 16, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.25); /* 구분선 */
    z-index: 9999;
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo img { height: 26px; display: block; transition: transform 0.3s; }
.logo:hover img { transform: scale(1.05); }

nav.desktop-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav.desktop-nav > a,
.nav-dropdown-trigger {
    background: transparent;
    border: none;
    outline: none;
    padding: 0 12px;
    margin: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: var(--header-height);
    color: #333;
    font-weight: 500;
    font-size: 14px;
    font-family: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

nav.desktop-nav a:hover,
.nav-dropdown-trigger:hover,
.language-selector.is-open .nav-dropdown-trigger {
    color: var(--primary-color);
}

.nav-dropdown, .language-selector {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(4, 8, 16, 0.95);  /* neonexsoft 동일 배경 */
    min-width: 180px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;          /* ← !important 제거, 기본 hidden */
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 1002;
    pointer-events: none;        /* ← 닫힌 상태에서 마우스 이벤트 차단 */
}

.language-selector .nav-dropdown-menu {
    left: auto;
    right: 0;
    transform: translateY(10px);
    min-width: 120px;
}

.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;        /* ← 열린 상태에서만 클릭 가능 */
}

.language-selector.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    text-align: left;
}

.language-selector .nav-dropdown-menu a {
    text-align: center;
    padding: 10px 15px;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: rgba(0, 123, 255, 0.05);
    color: var(--primary-color);
}

.nav-dropdown-menu a:hover { padding-left: 25px; }

.nav-dropdown-trigger svg { transition: transform 0.3s ease; }
.nav-dropdown.is-open .nav-dropdown-trigger svg,
.language-selector.is-open .nav-dropdown-trigger svg { transform: rotate(180deg); }

/* ============ [Header Right & CTA] ============ */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-cta {
    background: var(--primary-color);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.2;
    display: flex;
    align-items: center;
}
.header-cta:hover { background: #000; transform: translateY(-2px); }

/* ============ [Mobile Panel] ============ */
.mobile-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    z-index: 2000;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    padding: 20px;
}
.mobile-panel.active { right: 0; }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}
.mobile-menu-btn span { width: 24px; height: 2px; background: #333; transition: 0.3s; }

/* ============ [Mobile Nav Panel — mnav] ============ */
.mnav-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.mnav-logo img { height: 24px; display: block; }

.mnav-close {
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.mnav-close:hover { background: rgba(0,0,0,0.06); }
.mnav-close span {
    display: block;
    width: 18px;
    height: 2px;
    background: #333;
    position: relative;
    transform: rotate(45deg);
}
.mnav-close span::after {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    background: #333;
    transform: rotate(90deg);
}

.mnav-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mnav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 13px 8px;
    font-size: 15px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    background: none;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s;
}
.mnav-item:hover { color: var(--primary-color); }

.mnav-arrow {
    font-size: 18px;
    color: #aaa;
    transition: transform 0.3s;
}
.mnav-trigger[aria-expanded="true"] .mnav-arrow { transform: rotate(90deg); }

.mnav-group .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    pointer-events: auto;
    display: none;
    background: transparent;
    min-width: unset;
}
.mnav-group .nav-dropdown-menu.is-open { display: block; }

.mnav-foot {
    margin-top: auto;
    padding-top: 24px;
}
.mnav-cta {
    display: block;
    text-align: center;
    padding: 14px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}
.mnav-cta:hover { background: #000; }

/* ============================================================
   ★ TOP 영역 — 별자리 + 히어로 (스크롤하면 사라짐)
   ============================================================ */
#top-canvas-area {
    position: relative;          /* 일반 흐름에 포함 → 스크롤하면 위로 올라감 */
    width: 100%;
    height: 100vh;               /* 정확히 뷰포트 한 화면 높이 */
    overflow: hidden;
    background-color: #000;
    z-index: 1;                  /* Three.js(-1)보다 앞, header(1000)보다 뒤 */
    pointer-events: auto; /* 영역 자체는 이벤트를 받게 둠 */
    margin-bottom: 0; /* 섹션 간 간격 제거 */
    overflow: hidden;
}
/* [2] ★ 추가: 본문(main-content) 안에 들어있는 중복된 영역만 '강제로' 숨김 */
#main-content #top-canvas-area {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
}

/* ★ constellationCanvas: Top 섹션 안에서만 표시 (absolute) */
#constellationCanvas {
    position: absolute;          /* ← fixed에서 absolute로 변경 → Top 영역에만 귀속 */
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2;                  /* Top 영역 안에서 배경보다 앞 */
    pointer-events: none;
    background: transparent !important;
    pointer-events: none;
    background: transparent !important;
    display: block !important;
    border: none !important; /* 빨간 테두리 제거 확인 */
}

    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 20px;
}

.hero-text h1 .highlight {
    color: var(--point-theme-color, #00d4ff);
    transition: color 0.5s ease-in-out;
    text-shadow: 0 0 10px var(--point-theme-color, rgba(0, 212, 255, 0.5));
    font-weight: 800;
}

.hero-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ============================================================
   Trust Section (로고 배너)
   ============================================================ */
.trust-section {
    position: relative;
    background-color: #0a192f; /*rgba(0, 0, 0, 0.75);*/
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden; /* 영역 밖 콘텐츠 숨김 필수 */
    z-index: 20;
}

.trust-content {
    width: 100%;
    text-align: center;
}

.trust-label {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 8px;

}
.trust-label strong {
    color: var(--point-theme-color, #00d4ff);
    transition: color 0.5s ease;
}
.trust-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.trust-logos-marquee {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    /* 양 끝 페이드 효과 */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.trust-logos-track {
    display: flex;
    gap: 40px; 
    width: max-content;
    /* 15초 주기로 우측에서 좌측으로 무한 이동 */
    animation: infinite-slide 15s linear infinite;
}

.trust-logos-track:hover {
    animation-play-state: paused; /* 마우스 호버 시 멈춤 */
}

.trust-logo-pill {
    /* ★ 박스 크기 통일 핵심 설정 */
    flex: 0 0 180px; 
    width: 180px;
    height: 50px;
    
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backface-visibility: hidden;
    padding: 0 10px; /* 내부 여백 최소화 */
}

.trust-logo-pill img {
    height: auto;
    max-height: 28px; /* 로고 높이 제한 */
    width: auto;
    max-width: 80%;   /* 박스 너비의 80%까지만 차지 */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.trust-logo-pill:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.trust-logo-pill:hover img {
    transform: scale(1.05);
}

/* 무한 슬라이드 핵심 로직 */
@keyframes infinite-slide {
    0% {
        /* 화면 우측 끝(밖)에서 대기 */
        transform: translateX(100%);
    }
    100% {
        /* 트랙 전체가 화면 좌측 밖으로 완전히 나갈 때까지 이동 */
        transform: translateX(calc(-100%));
    }
}
/* ============================================================
   ★ BODY 배경 — Three.js 3D 큐브 (항상 fixed 배경)
   ============================================================ */
/* ★ three-container: position:fixed → Body 스크롤 중 항상 배경에 유지 */
#body-three-area {
    position: fixed;    /* 1. 일반 흐름에서 제외하여 화면에 고정 */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;        /* 2. 모든 콘텐츠(텍스트, 로고 등)보다 뒤로 보냄 */
    pointer-events: none; /* 3. 마우스 클릭이 배경을 통과하여 버튼 등을 누를 수 있게 함 */
}
/* 큐브 타이틀이 있다면 위치 조정 */
.three-title {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.2); /* 은은하게 표시 */
    font-size: 5rem;
    font-weight: 900;
    white-space: nowrap;
    z-index: 0;
}
/* 큐브가 담기는 컨테이너 */
#three-container {
    width: 100%;
    height: 100%;
}
/* ============================================================
   큐브가 배경에 깔리고, 콘텐츠 카드는 반투명하게 겹쳐 표시됨
   Main Content — Features (Body 영역)
   ============================================================ */

#main-content {
    position: relative;
    z-index: 30;                 /* three-container(-1)보다 앞 */
}

.features {
    position: relative;
    padding-top: 120px;
    padding-bottom: 0px;  /* ← 원하는 값으로 조절 */
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* ★ 반투명 그라데이션 배경 → 큐브가 살짝 비쳐 보임 */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.65) 50%,
        rgba(0, 0, 0, 0.80) 100%
    );
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}
/* ============================================================
   Bidy Section Header
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header:first-child {
    margin-bottom: 10px !important; /* 기존 60px 등에서 대폭 축소 */
}
.section-header:nth-child(2) {
    margin-top: 0 !important;
}
.section-header h2 {
    font-size: 40px; 
    font-weight: 700;
    margin-bottom: 5px !important; /* 제목과 설명 사이 간격 */
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -1px;
}
.section-header p {
    margin-top: 0;
    margin-bottom: 20px; /* 이미지와의 간격 */
}
/* 핵심 기술 배지 (Section Tag) 디자인*/
.section-tag {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #00eaff; /* 테마 포인트 컬러 */
    text-transform: uppercase;
    letter-spacing: 2px;
    
    /* 테두리 및 배경 디자인 */
    background: rgba(0, 234, 255, 0.05); /* 아주 투명한 하늘색 배경 */
    border: 1px solid rgba(0, 234, 255, 0.3); /* 반투명한 테두리 */
    border-radius: 50px; /* 알약 모양 */
    
    /* 글로우 효과 (네온 느낌) */
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.1), inset 0 0 5px rgba(0, 234, 255, 0.1);
    
    margin-bottom: 20px;
    transition: all 0.4s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

/* 호버 시 혹은 은은한 애니메이션 효과 (선택 사항) */
.section-tag:hover {
    background: rgba(0, 234, 255, 0.15);
    border-color: rgba(0, 234, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.3);
    transform: translateY(-2px);
}

/* 왼쪽 앞에 작은 점(Dot)을 추가해 '활성화된 상태' 느낌 주기 */
.section-tag::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #00eaff;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
    box-shadow: 0 0 8px #00eaff;
    animation: blink 2s infinite;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 28px; /* 모바일에서는 가독성을 위해 크기 조절 */
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ============ Feature Grid (4열) ============ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 35px;
    margin-bottom: 35px;
    align-items: stretch;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 10px 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
    border-top: 3px solid rgba(255, 255, 255, 0.3);
    padding-top: 15px;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    word-break: keep-all;
}

/* ============================================================
   Feature Card - 주요 장점
   ============================================================ */

.benefit-container {
    margin-top: 18px;
}

.benefit-title {
    display: block;
    margin-bottom: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
}

.benefit-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.benefit-list li {
    position: relative;
    margin: 0;
    padding-left: 16px;
    font-size: 0.82rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.85);

    white-space: normal;
}

.benefit-list li + li {
    margin-top: 2px;
}

.benefit-list li::before {
    content: "•";
    position: absolute;
    left: 2px;
    top: 0;
    color: #ffffff;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* 피처 메인 비주얼 이미지 */
.feature-main-visual {
    margin: 50px auto 30px auto;
    max-width: 1000px;
    filter: drop-shadow(0 0 40px rgba(0, 123, 255, 0.15));
}

.feature-main-visual img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* ============================================================
   Section 2: Integrated Solutions (화이트 테마)
   ============================================================ */
.features-solutions {
    background-color: #ffffff; /* 배경을 화이트로 */
    padding-top: 100px !important; 
    padding-bottom: 60px !important;
    margin-top: 50px !important;
    color: #333333;            /* 기본 글자색을 어둡게 */
    border-top: 1px solid #f0f0f0;
}

/* 화이트 배경용 헤더 스타일 */
.features-solutions .section-header h2 {
    color: #1a1a1a !important;
    font-size: 2.8rem; /* 다크 섹션과 크기 통일 */
    margin-bottom: 10px;
}

.features-solutions .section-header p {
    color: #666666 !important;
    font-size: 1.15rem;
    margin-bottom: 40px; /* 이미지와의 간격 */
}

/* 화이트 배경용 카드 스타일 보정 */
.features-solutions .feature-card {
    background: #fcfcfc;       /* f8f9fa보다 조금 더 밝게 하여 깨끗한 느낌 강조 */
    border: 1px solid #eeeeee; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); 
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.features-solutions .feature-card h3 {
    color: #1a1a1a;
    font-size: 1.4rem;
    /* ★ 포인트: 다크 섹션에 있던 상단 보더 디자인을 화이트에 맞게 계승 */
    border-top: 3px solid #1a1a1a; 
    padding-top: 20px;
    margin-bottom: 15px;
}

.features-solutions .feature-card p {
    color: #555555;
    line-height: 1.6;
    word-break: keep-all; /* 한글 가독성 향상 */
}

/* 호버 효과 — 어두운 배경으로 전환 + 텍스트도 밝게 */
.features-solutions .feature-card:hover {
    background: rgba(4, 8, 16, 0.95);
    border-color: rgba(0,212,255,0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,212,255,0.12);
}
.features-solutions .feature-card:hover h3 {
    color: #00D4FF;
    border-top-color: rgba(0,212,255,0.5);
}
.features-solutions .feature-card:hover p {
    color: rgba(232, 240, 255, 0.75);
}
/* benefit-title, benefit-list도 보이게 */
.features-solutions .feature-card:hover .benefit-title {
    color: rgba(232,240,255,0.55);
}
.features-solutions .feature-card:hover .benefit-list li {
    color: rgba(232,240,255,0.75);
}
.features-solutions .feature-card:hover .benefit-list li::before {
    color: #00D4FF;
}

.features-solutions .benefit-title {
    color: #333333;
}

.features-solutions .benefit-list li {
    color: #555555;
}

.features-solutions .benefit-list li::before {
    color: #333333;
}

@media (max-width: 1250px) {
    .benefit-list li {
        white-space: normal;
        word-break: keep-all;
    }
}

/* ============================================================
   Contact Section (흰 배경 — 3D 큐브를 완전히 가림)
   ============================================================ */
.contact-section {
    position: relative;
    z-index: 40;                 /* three-container(-1)보다 충분히 앞 */
    padding: 60px 0 60px 0;
    background-color: #0a192f;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 3fr 7fr;
    gap: 60px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 2.8rem;
    color: #ffffff !important; /* 흰색으로 변경 */
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-info p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8) !important; /* 연한 흰색/회색 */
    line-height: 1.6;
}

.contact-benefits {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-benefit {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.contact-benefit-icon { margin-top: 3px; flex-shrink: 0; }

.contact-benefit-icon img {
    width: 16px;
    height: 16px;
    background: #f8f9fa;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 6px;
    display: block;
}

.benefit-text h4 {
    font-size: 1.1rem;
    color: #ffffff !important;
    margin-top: 0;
    margin-bottom: 4px;
    font-weight: 600;
    line-height: 1.3;
}

.benefit-text p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.contact-form-card {
    /* 배경을 약간 더 밝은 블루나 반투명 다크로 변경하여 입체감 부여 */
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-form-card h3 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: #ffffff !important;
    font-weight: 700;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 5px;
    width: 100%;
}

.form-group {
    flex: 1 1 50%;
    min-width: 0;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

.required { color: #e74c3c; margin-right: 4px; }

/* --- 입력창 (Input & Textarea) --- */
.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05); /* 투명도 살짝 조절 */
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff !important; /* ★중요: 기존 #000에서 흰색으로 변경 */
    border-radius: 12px;
    padding: 18px 20px;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

/* 포커스 시 디자인 보정 */
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #00eaff; /* ★중요: 검정(#000)대신 포인트 블루로 변경 */
    background: rgba(255, 255, 255, 0.1); /* 흰색(#fff) 배경 대신 약간 더 밝은 다크 배경 유지 */
}

.form-checkbox-container { margin-bottom: 25px; }

/* --- 체크박스 & 개인정보 --- */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9); /* ★중요: #333에서 밝은 색으로 변경 */
    margin-bottom: 12px;
}

.privacy-content {
    display: block;
    padding: 18px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1); /* ★중요: #eee에서 어두운 테두리로 변경 */
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    word-break: keep-all;
}

.privacy-content p { margin: 0; }
.privacy-content strong { 
    color: rgba(255, 255, 255, 0.8); /* ★중요: #444에서 밝은 색으로 변경 */
}

/* --- 전송 버튼 (Submit Button) --- */
.btn-submit-full {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box;
    height: 60px;
    background: #00eaff; /* ★핵심기술 포인트 컬러와 통일 권장 */
    color: #0a192f !important; /* ★다크 블루 배경에 대비되도록 짙은 색 텍스트 */
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px; /* 입력창과 동일하게 곡률 조정 */
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-submit-full:hover {
    background: rgba(4, 8, 16, 0.95);  /* neonexsoft 동일 배경 */ /* 호버 시 화이트로 강조 */
    color: #0a192f !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 234, 255, 0.3); /* 푸른색 그림자 */
}

/* ============================================================
   Contact — 지도 블록 (style.css에 추가할 내용)
   ============================================================ */
.map-block {
    margin-top: 30px;
}

.map-block h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

#map-container {
    width: 100%;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

#map-container iframe {
    position: absolute;
    top: -65px;   /* 구글맵 상단 UI 잘라내기 */
    left: 0;
    width: 100%;
    height: 180%;
    border: 0;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
    position: relative;
    z-index: 40;
    padding: 60px 0;
    background: #111;
    color: #ccc;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: left;
}

footer .logo {
    display: inline-block;
    margin-bottom: 25px;
}

footer .logo img {
    height: 30px;
    display: block;
}

.footer-info p {
    margin: 8px 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #888;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
    nav.desktop-nav { display: none !important; }
    .mobile-menu-btn { display: flex; }
    .language-selector { margin-right: 5px; }
    .language-selector 
    .nav-dropdown-trigger span { font-size: 13px; }
    .header-cta { padding: 7px 14px; font-size: 12px; }
}

@media (max-width: 768px) {
    .hero-text h1 { font-size: 28px; }
    .trust-logo-pill { height: 40px; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-form-card { min-width: auto; padding: 40px 20px; }
    .form-row { flex-direction: column; gap: 0; }
    .form-group { flex: 1 1 100%; }
    .footer-inner { padding: 0 20px; }
    .footer-info p { font-size: 0.85rem; }
}

@media (max-width: 640px) {
    .feature-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Section 1: 핵심 기술 3D 배경 설정
   ============================================================ */
#features-core {
    position: relative;
    background-color: #010610;
    overflow: hidden;
}

.relative-content {
    position: relative;
    z-index: 2;
}

header {
    position: fixed; /* 또는 sticky */
    top: 0;
    width: 100%;
    z-index: 1000 !important; /* 무조건 캔버스(2)보다 높아야 함 */
    pointer-events: auto !important; /* 헤더 안의 메뉴는 클릭 가능해야 함 */
}

/* 메인 콘텐츠 영역 (핵심기술 등) */
.content-wrapper, section {
    position: relative;
    z-index: 10; /* 캔버스(1~2)보다는 높고 헤더(1000)보다는 낮게 */
    pointer-events: auto;
}


/* ============================================================
   메뉴 클릭 시 스크롤 위치 보정 (헤더 가림 방지)
   ============================================================ */
#ai-core, 
#ai-analysis, 
#gate-control, 
#features-core,
.section-header {
    scroll-margin-top: 120px !important; 
}

html {
    scroll-behavior: smooth;
}



/* ================================================================
   Hero / Badge / Stats / Ticker — 완전 재작성
   ================================================================ */

/* CSS 변수 */
:root {
    --cyan:   #00D4FF;
    --violet: #8B5CF6;
    --text:   #E8F0FF;
    --muted:  rgba(232,240,255,0.45);
    --border: rgba(0,212,255,0.12);
}

/* nav 구분선 */
header {
    background: rgba(4, 8, 16, 0.95) !important;
    border-bottom: 1px solid rgba(0,212,255,0.25) !important;
}
nav.desktop-nav > a,
.nav-dropdown-trigger { color: rgba(255,255,255,0.75) !important; }
nav.desktop-nav a:hover,
.nav-dropdown-trigger:hover { color: var(--cyan) !important; }
.header-cta { border-color: rgba(0,212,255,0.5) !important; color: var(--cyan) !important; }
.header-cta:hover { background: rgba(0,212,255,0.1) !important; }
.mobile-menu-btn span { background: rgba(255,255,255,0.8) !important; }

/* 배경 */
body, html { background-color: #040810 !important; }
#top-canvas-area { background-color: #040810 !important; }

/* ── hero-text-overlay ─────────────────────────────── */
.hero-text-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* 상단 텍스트 ↕ 하단 stats/ticker */
    text-align: center;
    padding: 0 24px;
    pointer-events: none;
    box-sizing: border-box;
}

/* 상단 텍스트 영역 - 위쪽 공간 차지 */
.hero-top-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex: 1;
    min-height: 0;
}

/* ── 1. 캔버스 공간 (북극성 + NEOSGEN 영역) ──────── */
/* 북극성(18vh) + NEOSGEN 텍스트 높이(~2vh) = 약 22vh */
.hero-canvas-space {
    flex: 0 0 22vh;
    width: 100%;
}

/* ── 2. badge ─────────────────────────────────────── */
.hero-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(0,212,255,0.35);
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--cyan);
    background: rgba(0,212,255,0.07);
    margin-top: 6vh;   /* NEOSGEN 아래 여백 */
    margin-bottom: 0;
}
.badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%,100%{ opacity:1; transform:scale(1); }
    50%    { opacity:0.5; transform:scale(1.4); }
}

/* ── 3. hero-title ────────────────────────────────── */
.hero-title {
    flex-shrink: 0;
    font-size: clamp(32px, 5.5vw, 68px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-top: 6vh;   /* badge 아래 여백 */
    margin-bottom: 0;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.2s forwards;
}
.hero-title .line1 { display: block; color: var(--text); }
.hero-title .line2 {
    display: block;
    background: linear-gradient(90deg, var(--cyan) 0%, #4488FF 40%, var(--violet) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}
.hero-title .line2::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    transform: scaleX(0);
    transform-origin: left;
    animation: lineExpand 1s ease 1.1s forwards;
}
@keyframes lineExpand { to { transform: scaleX(1); } }

/* ── 4. 구분선 ─────────────────────────────────────── */
.hero-divider {
    flex-shrink: 0;
    width: 60%;
    max-width: 420px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.45), transparent);
    margin: 10px 0 10px;
}

/* ── 5. subtitle ─────────────────────────────────── */
.hero-subtitle {
    flex-shrink: 0;
    font-size: clamp(13px, 1.6vw, 18px);
    font-weight: 300;
    color: rgba(232,240,255,0.55);
    letter-spacing: 1px;
    margin-bottom: 6px;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.4s forwards;
}

/* ── 6. desc ─────────────────────────────────────── */
.hero-desc {
    flex-shrink: 0;
    max-width: 540px;
    font-size: 13px;
    line-height: 1.75;
    color: var(--muted);
    font-weight: 300;
    margin: 0 auto 12px;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.5s forwards;
}
.hero-desc strong { color: rgba(0,212,255,0.8); font-weight: 500; }

/* ── 7. 카운트 카드 ──────────────────────────────── */
.hero-stats {
    flex-shrink: 0;
    display: flex;
    flex-wrap: nowrap;          /* 줄바꿈 없이 한 줄 유지 */
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: visible;          /* 겹침 방지 */
    opacity: 0;
    animation: fadeUp 0.9s ease 0.65s forwards;
    width: fit-content;         /* 카드 내용에 맞게 너비 자동 */
    max-width: 100%;
}
.stat-item {
    padding: 12px 20px;
    min-width: 90px;            /* 최소 너비 보장 */
    text-align: center;
    border-right: 1px solid var(--border);
    border: 1px solid var(--border);
    border-right: none;
    background: rgba(0,212,255,0.02);
    transition: background 0.2s;
}
.stat-item:first-child { border-radius: 8px 0 0 8px; }
.stat-item:last-child  { border-right: 1px solid var(--border); border-radius: 0 8px 8px 0; }
.stat-item:hover { background: rgba(0,212,255,0.06); }
.stat-num {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 2px;
    white-space: nowrap;
}
.stat-label {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ── 8. Ticker ───────────────────────────────────── */
.ticker-inline {
    flex-shrink: 0;
    position: static !important;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 10px;
    background: rgba(4,8,16,0.75) !important;
    border-top: 1px solid rgba(0,212,255,0.12);
    border-bottom: 1px solid rgba(0,212,255,0.12);
    padding: 11px 0;
    overflow: hidden;
    margin-bottom: 0;  /* hero 영역 최하단 */
}
.ticker-track {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 0 40px;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--muted);
}
.ticker-item .sep { color: var(--cyan); opacity: 0.4; }
@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

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

@media (max-width: 768px) {
    .hero-stats { flex-wrap: wrap; border-radius: 6px; }
    .stat-item  { flex: 1 1 45%; border-bottom: 1px solid var(--border); }
    .stat-item:nth-child(odd)  { border-right: 1px solid var(--border); }
    .stat-item:nth-child(even) { border-right: none; }
    .stat-item:nth-last-child(-n+2) { border-bottom: none; }
}

/* ================================================================
   관리자 영역 — 로그인 버튼 / 메뉴 / 배지 / 모달
   ================================================================ */

/* 관리자 영역 */
.admin-area {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

/* 로그인 전 버튼 */
.admin-login-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(0,212,255,0.3);
    border-radius: 6px;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.admin-login-btn:hover {
    border-color: rgba(0,212,255,0.7);
    color: #00D4FF;
    background: rgba(0,212,255,0.06);
}

/* 로그인 후 메뉴 */
.admin-logged-in {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 문의관리 버튼 */
.admin-inquiry-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.4);
    border-radius: 6px;
    color: #00D4FF;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.admin-inquiry-btn:hover {
    background: rgba(0,212,255,0.18);
}

/* 신규 문의 배지 */
.inquiry-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #FF4757;
    border-radius: 9px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%,100% { transform: scale(1); }
    50%      { transform: scale(1.15); }
}

/* 로그아웃 버튼 */
.admin-logout-btn {
    padding: 6px 10px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: rgba(255,255,255,0.45);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.admin-logout-btn:hover {
    border-color: rgba(255,80,80,0.5);
    color: #FF6B6B;
}

/* 모달 오버레이 */
.admin-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
}

/* 모달 박스 */
.admin-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    background: #0A1428;
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    z-index: 10001;
    overflow: hidden;
}

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,212,255,0.12);
}
.admin-modal-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #E8F0FF;
    margin: 0;
}
.admin-modal-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: 0.2s;
}
.admin-modal-close:hover { color: #fff; background: rgba(255,255,255,0.08); }

.admin-modal-body { padding: 20px; }

.admin-form-group {
    margin-bottom: 14px;
}
.admin-form-group label {
    display: block;
    font-size: 12px;
    color: rgba(232,240,255,0.5);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.admin-form-group input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 6px;
    color: #E8F0FF;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.admin-form-group input:focus {
    border-color: rgba(0,212,255,0.5);
    background: rgba(0,212,255,0.04);
}
.admin-form-group input::placeholder { color: rgba(255,255,255,0.2); }

.admin-login-error {
    font-size: 12px;
    color: #FF6B6B;
    margin: 0 0 12px;
    min-height: 16px;
}

.admin-login-submit {
    width: 100%;
    padding: 11px;
    background: linear-gradient(90deg, #00D4FF, #4488FF);
    border: none;
    border-radius: 6px;
    color: #040810;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}
.admin-login-submit:hover   { opacity: 0.88; }
.admin-login-submit:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 768px) {
    .admin-login-btn span { display: none; }  /* 모바일: 아이콘만 */
    .admin-inquiry-btn { padding: 6px 8px; font-size: 11px; }
    .admin-modal { width: calc(100vw - 40px); }
}
