/* ===== 리셋 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-text: #1d1d1f;
    --color-text-light: #6e6e73;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-bg-light: #f5f5f7;
    --color-bg-dark: #1d1d1f;
    --color-accent: #0071e3;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== 헤더 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0.25rem 0.5rem;
}

.lang-btn.active {
    color: var(--color-accent);
    font-weight: 600;
}

.lang-btn:hover {
    color: var(--color-accent);
}

.divider {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* ===== 플로팅 네비게이션 ===== */
.floating-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-dot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-dot .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    transition: all 0.3s;
    position: relative;
}

.nav-dot:hover .dot {
    background: var(--color-accent);
    transform: scale(1.3);
}

.nav-dot.active .dot {
    background: var(--color-accent);
    transform: scale(1.5);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

/* 툴팁 */
.nav-dot::before {
    content: attr(title);
    position: absolute;
    right: 100%;
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    background: var(--color-text);
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.nav-dot:hover::before {
    opacity: 1;
}

/* 모바일에서 숨김 */
@media (max-width: 768px) {
    .floating-nav {
        display: none;
    }
}

/* ===== 메인 ===== */
main {
    padding-top: 44px; /* 헤더 높이만큼 */
}

/* ===== 히어로 섹션 ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--color-white);
    text-align: center;
    padding: 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    font-weight: 400;
}

/* ===== 피처 섹션 ===== */
.feature-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.feature-section.bg-light {
    background: var(--color-bg-light);
}

.feature-section.bg-dark {
    background: var(--color-bg-dark);
}

.feature-section.bg-gradient {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.feature-section.bg-gradient-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.feature-section.bg-gradient-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.feature-section.bg-gradient-orange {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.feature-section.bg-gradient-indigo {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.feature-section.bg-gradient-purple {
    background: linear-gradient(135deg, #c471f5 0%, #fa71cd 100%);
}

.feature-section.bg-gradient-teal {
    background: linear-gradient(135deg, #13547a 0%, #80d0c7 100%);
}

.feature-content {
    max-width: 1000px;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.section-title.light {
    color: var(--color-white);
}

.section-description {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--color-text-light);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.section-description.light {
    color: rgba(255, 255, 255, 0.9);
}

/* 이미지 플레이스홀더 */
.image-placeholder {
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.image-placeholder.dark {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--color-white);
}

.image-placeholder.gradient {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--color-white);
}

.image-placeholder.green {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--color-white);
}

.image-placeholder.orange {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--color-white);
}

.image-placeholder.indigo {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--color-white);
}

.image-placeholder.teal {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--color-white);
}

.image-placeholder p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.image-placeholder.dark p,
.image-placeholder.gradient p {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== 슬라이더 ===== */
.slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 20px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.slider-item {
    min-width: 100%;
    flex-shrink: 0;
}

.slider-item .image-placeholder {
    width: 100%;
    height: 500px;
    margin: 0;
}

/* 슬라이더 버튼 */
.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-btn:disabled:hover {
    transform: scale(1);
}

/* 슬라이더 인디케이터 */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.indicator.active {
    background: var(--color-white);
    width: 32px;
    border-radius: 5px;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ===== 하단 영역들 ===== */
/* 시연 참여 신청 폼 */
.trial-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: var(--color-white);
}

.trial-container {
    max-width: 700px;
    width: 100%;
    background: var(--color-white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.trial-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
    text-align: center;
}

.trial-description {
    font-size: 1rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.trial-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: var(--color-white);
    color: var(--color-text);
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.form-group input::placeholder {
    color: #aaa;
}

/* 체크박스 */
.checkbox-group {
    margin: 0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    position: relative;
}

.checkbox-custom::after {
    content: '';
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s;
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.checkbox-label input:checked + .checkbox-custom::after {
    transform: rotate(45deg) scale(1);
}

.checkbox-text {
    font-size: 0.875rem;
    color: var(--color-text);
}

/* 제출 버튼 */
.trial-submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    margin-top: 1rem;
}

.trial-submit-btn:hover {
    background: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.3);
}

.trial-submit-btn:active {
    transform: translateY(0);
}

.trial-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    transition: transform 0.3s;
}

.trial-submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* 폼 메시지 */
.form-message {
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    text-align: center;
    display: none;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* 폼 푸터 */
.form-footer {
    margin-top: 1rem;
    text-align: center;
}

.form-notice {
    font-size: 0.75rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.form-notice a {
    color: var(--color-accent);
    text-decoration: underline;
}

.form-notice a:hover {
    color: #005bb5;
}

/* 점선 플레이스홀더 (나머지 섹션들) */
/* 플레이스홀더 스타일 제거됨 - 이제 feature-section으로 통합 */

/* ===== 푸터 ===== */
.footer {
    background: var(--color-bg-dark);
    color: var(--color-white);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-white);
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .logo-img {
        width: 28px;
        height: 28px;
    }

    .logo-text {
        font-size: 1.125rem;
    }

    .hero-section,
    .feature-section,
    .trial-section {
        min-height: 80vh;
        padding: 3rem 1.5rem;
    }

    .image-placeholder {
        height: 300px;
    }

    .slider-item .image-placeholder {
        height: 350px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slider-btn svg {
        width: 20px;
        height: 20px;
    }

    .trial-container {
        padding: 2.5rem 2rem;
    }

    .trial-title {
        font-size: 1.75rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section,
    .feature-section,
    .trial-section {
        min-height: 70vh;
        padding: 2rem 1rem;
    }

    .image-placeholder {
        height: 250px;
    }

    .slider-item .image-placeholder {
        height: 300px;
    }

    .slider-container {
        gap: 0.5rem;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
    }

    .slider-btn svg {
        width: 18px;
        height: 18px;
    }

    .slider-indicators {
        margin-top: 1.5rem;
        gap: 0.4rem;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    .indicator.active {
        width: 24px;
    }

    .trial-container {
        padding: 2rem 1.5rem;
    }

    .trial-title {
        font-size: 1.5rem;
    }

    .trial-description {
        font-size: 0.875rem;
        margin-bottom: 2rem;
    }

    .trial-form {
        gap: 1.25rem;
    }

    .trial-submit-btn {
        font-size: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ===== 스크롤바 ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-light);
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ===== 관리자 비밀번호 모달 ===== */
.admin-password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s;
}

.admin-password-content {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s;
}

.admin-password-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.admin-password-content p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

#adminPasswordInput {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

#adminPasswordInput:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.admin-password-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.admin-password-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-password-btn.primary {
    background: var(--color-accent);
    color: white;
}

.admin-password-btn.primary:hover {
    background: #005bb5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.admin-password-btn.secondary {
    background: #f5f5f5;
    color: var(--color-text);
}

.admin-password-btn.secondary:hover {
    background: #e0e0e0;
}

.admin-password-error {
    color: #dc3545;
    font-size: 0.875rem;
    min-height: 1.5rem;
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ===== 애니메이션 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}
