/* 기본 설정 및 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    color: rgb(25, 25, 25);
    background-color: rgb(255, 255, 255);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* 헤더 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 2px 20px;
}

/* 로고 영역 */
.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 32px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.logo-link:hover .logo-image {
    opacity: 0.8;
}

/* 데스크탑 네비게이션 */
.nav-desktop {
    display: flex;
    margin-left: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: rgb(25, 25, 25);
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: rgb(20, 98, 247);
}

.nav-link.active {
    color: rgb(20, 98, 247);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgb(20, 98, 247);
    border-radius: 1px;
}

/* 모바일 햄버거 메뉴 버튼 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: auto;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: rgb(25, 25, 25);
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 모바일 네비게이션 */
.nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.nav-mobile.active {
    transform: translateX(0);
}

.nav-mobile-list {
    list-style: none;
    text-align: center;
}

.nav-mobile-list li {
    margin-bottom: 32px;
}

.nav-mobile-link {
    text-decoration: none;
    color: rgb(25, 25, 25);
    font-weight: 600;
    font-size: 24px;
    transition: color 0.2s ease;
}

.nav-mobile-link:hover {
    color: rgb(20, 98, 247);
}

/* 히어로 섹션 */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, rgba(20, 98, 247, 0.02) 0%, rgba(255, 255, 255, 1) 100%);
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: rgb(25, 25, 25);
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: rgba(25, 25, 25, 0.7);
    line-height: 1.5;
    letter-spacing: -0.5px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s both;
}

/* 카드 스택 - 우상향 대각선 배치 (겹치지 않게) */
.cards-stack {
    position: relative;
    width: 500px;
    height: 400px;
}

.hero-card {
    position: absolute;
    background: rgb(255, 255, 255);
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 
        0 32px 64px rgba(20, 98, 247, 0.08),
        0 16px 32px rgba(20, 98, 247, 0.04);
    transition: all 0.4s ease;
    width: 180px;
    height: 220px;
}

.card-1 {
    top: 0;
    left: 0;
    transform: rotate(-8deg);
    z-index: 3;
}

.card-2 {
    top: 80px;
    left: 120px;
    transform: rotate(5deg);
    z-index: 2;
}

.card-3 {
    top: 160px;
    left: 240px;
    transform: rotate(-2deg);
    z-index: 1;
}

.hero-card:hover {
    transform: rotate(0deg) scale(1.1);
    z-index: 10;
}

.card-content {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.card-text {
    font-size: 18px;
    font-weight: 600;
    color: rgb(25, 25, 25);
}

/* 스크롤 유도 화살표 - 단일 화살표 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-arrow {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid rgb(20, 98, 247);
    animation: arrowBounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes arrowBounce {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* 하이라이트 섹션 */
.highlights {
    padding: 120px 0;
    background: rgb(255, 255, 255);
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 80px;
    color: rgb(25, 25, 25);
    letter-spacing: -1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: rgb(255, 255, 255);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
}

.stat-card.visible {
    animation: fadeInUp 0.6s ease forwards;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(20, 98, 247, 0.08);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: rgb(20, 98, 247);
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 20px;
    font-weight: 600;
    color: rgb(25, 25, 25);
    margin-bottom: 8px;
}

.stat-desc {
    font-size: 16px;
    color: rgba(25, 25, 25, 0.6);
    line-height: 1.5;
}

/* 연락처 섹션 */
.contact {
    padding: 120px 0;
    background: rgba(20, 98, 247, 0.02);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.contact-card {
    background: rgb(255, 255, 255);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(20, 98, 247, 0.1);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.contact-title {
    font-size: 20px;
    font-weight: 600;
    color: rgb(25, 25, 25);
    margin-bottom: 16px;
}

.contact-value {
    font-size: 24px;
    font-weight: 700;
    color: rgb(20, 98, 247);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.contact-desc {
    font-size: 16px;
    color: rgba(25, 25, 25, 0.6);
}

/* 푸터 */
.footer {
    background: rgb(25, 25, 25);
    color: rgb(255, 255, 255);
    padding: 48px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.footer-company {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.company-info-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.company-name {
    font-size: 18px;
    font-weight: 700;
    color: rgb(255, 255, 255);
}

.company-address {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.footer-contact-center {
    text-align: left;
}

.contact-center-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.contact-center-phone {
    font-size: 24px;
    font-weight: 700;
    color: rgb(255, 255, 255);
    margin-bottom: 4px;
}

.contact-center-email {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}

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

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cards-stack {
        width: 420px;
        height: 350px;
    }
    
    .card-2 {
        top: 70px;
        left: 100px;
    }
    
    .card-3 {
        top: 140px;
        left: 200px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header .container {
        height: 70px;
        padding: 2px 16px;
    }
    
    .logo-image {
        height: 28px;
    }

    /* 모바일에서 데스크탑 네비게이션 숨기고 햄버거 메뉴 표시 */
    .nav-desktop {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: 110px 0 60px;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 40px;
        margin-bottom: 20px;
        white-space: normal;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 36px;
        margin-bottom: 60px;
    }
    
    .highlights,
    .contact {
        padding: 80px 0;
    }
    
    .stats-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .stat-card,
    .contact-card {
        padding: 32px 24px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .cards-stack {
        width: 350px;
        height: 300px;
    }
    
    .hero-card {
        width: 150px;
        height: 180px;
        padding: 24px 16px;
    }
    
    .card-1 {
        top: 0;
        left: 20px;
    }
    
    .card-2 {
        top: 50px;
        left: 100px;
    }
    
    .card-3 {
        top: 100px;
        left: 180px;
    }
    
    .card-icon {
        font-size: 36px;
    }
    
    .card-text {
        font-size: 16px;
    }
    
    /* 모바일 푸터 레이아웃 */
    .footer-content {
        flex-direction: column;
        gap: 0;
    }
    
    .footer-left,
    .footer-center {
        text-align: left;
        padding-bottom: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 24px;
    }
    
    .footer-right {
        text-align: center;
        padding-top: 8px;
    }
    
    .footer-contact-center {
        text-align: left;
    }
    
    .footer-copyright {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .logo-image {
        height: 24px;
    }
    
    .header .container {
        height: 60px;
    }
    
    .nav-list {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .cards-stack {
        width: 300px;
        height: 250px;
    }
    
    .card-1 {
        top: 0;
        left: 10px;
    }
    
    .card-2 {
        top: 40px;
        left: 80px;
    }
    
    .card-3 {
        top: 80px;
        left: 150px;
    }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    .nav-link,
    .hero-title,
    .section-title {
        color: rgb(0, 0, 0);
    }
    
    .hero-subtitle,
    .stat-desc,
    .contact-desc {
        color: rgba(0, 0, 0, 0.8);
    }
}