@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Noto+Sans+KR:wght@400;600;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', 'Noto Sans KR', sans-serif; }
body { background-color: #050508; color: #e0e0e0; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Header */
header { position: fixed; top: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); z-index: 100; border-bottom: 1px solid rgba(0, 0, 0, 0.1); box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
header .container { display: flex; justify-content: flex-start; height: 80px; align-items: center; }
.logo { display: flex; align-items: center; }
.logo-img { height: 60px; object-fit: contain; }
/* Navigation */
.nav { display: flex; gap: 2.5rem; align-items: center; height: 80px; margin-left: auto; }
.nav-link { font-size: 1.1rem; font-weight: 600; color: #333; transition: color 0.3s; height: 80px; line-height: 80px; width: 110px; text-align: center; position: relative; display: inline-block; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background-color: #007AFF; transform: scaleX(0); transition: transform 0.3s ease; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link:hover, .nav-link.active { color: #007AFF; }

/* Language Selector */
.lang-selector { position: relative; margin-left: 2rem; display: flex; align-items: center; height: 80px; cursor: pointer; z-index: 105; }
.lang-current { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; font-weight: 600; color: #333; padding: 0.5rem 0.8rem; border-radius: 4px; transition: background 0.3s; border: 1px solid rgba(0,0,0,0.1); }
.lang-current:hover { background: rgba(0, 0, 0, 0.03); }
.lang-current .fi { font-size: 1.2rem; border-radius: 2px; }
.lang-current svg { width: 12px; height: 12px; transition: transform 0.3s; }
.lang-selector:hover .lang-current svg { transform: rotate(180deg); }
.lang-dropdown { position: absolute; top: 100%; right: 0; background: #ffffff; box-shadow: 0 15px 35px rgba(0,0,0,0.1); border-radius: 8px; border: 1px solid rgba(0,0,0,0.06); padding: 0.5rem 0; width: 140px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; }
.lang-selector:hover .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown a { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1.2rem; color: #333; font-size: 0.95rem; font-weight: 500; transition: background 0.2s; }
.lang-dropdown a:hover { background: rgba(0, 122, 255, 0.05); color: #007AFF; }
.lang-dropdown .fi { font-size: 1.1rem; border-radius: 2px; }

/* Mega Menu */
.mega-menu { position: absolute; top: 80px; left: 0; width: 100%; background: #ffffff; border-top: 1px solid rgba(0, 0, 0, 0.06); border-bottom: 1px solid rgba(0, 0, 0, 0.08); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05); z-index: 99; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease; padding: 2.5rem 0; }
header:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-menu-container { display: flex; justify-content: flex-end; width: 100%; padding-right: 175px; }
.mega-menu-grid { display: flex; gap: 2.5rem; width: auto; margin-left: auto; justify-content: flex-end; }
.mega-menu-column { width: 110px; text-align: center; }
.mega-menu-list { list-style: none; padding: 0; margin: 0; }
.mega-menu-list li { margin-bottom: 1rem; }
.mega-menu-list li:last-child { margin-bottom: 0; }
.mega-menu-list a { font-size: 1.05rem; color: #555; font-weight: 500; transition: color 0.2s, font-weight 0.2s; display: block; padding: 0.3rem 0; }
.mega-menu-list a:hover { color: #007AFF; font-weight: 600; }

/* Hero */
.hero { height: 100vh; position: relative; overflow: hidden; background: #050508; }
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 150px; background: linear-gradient(to top, #050508, transparent); z-index: 5; pointer-events: none; }
.hero-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s ease-in-out; z-index: 1; display: flex; align-items: center; justify-content: flex-start; }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,8,0.9) 0%, rgba(5,5,8,0.3) 100%); z-index: 2; pointer-events: none; }
.slide.active { opacity: 1; z-index: 2; }
.slide img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-content { position: relative; z-index: 10; padding-top: 80px; width: 100%; }
.hero-content h1 { font-size: 4.5rem; font-weight: 800; margin-bottom: 1.5rem; color: #fff; line-height: 1.1; letter-spacing: -1px; }
.hero-content h1 span { color: #007AFF; }
.hero-content p { font-size: 1.6rem; color: #aaa; margin-bottom: 3rem; white-space: pre-line; max-width: 600px; }
.btn { display: inline-block; padding: 1.2rem 3.5rem; background: #007AFF; color: #fff; border-radius: 4px; font-weight: 800; font-size: 1.1rem; transition: all 0.3s; border: 1px solid #007AFF; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; }
.btn:hover { background: transparent; color: #007AFF; box-shadow: 0 0 20px rgba(0, 122, 255, 0.4); }

/* Sections */
.section { padding: 4rem 0; position: relative; }
.section h2 { text-align: center; font-size: 3rem; margin-bottom: 3rem; font-weight: 800; color: #fff; }
.section-desc { text-align: center; color: #aaa; font-size: 1.15rem; line-height: 1.8; max-width: 800px; margin: 0 auto 3.5rem auto; word-break: keep-all; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }

/* Cards (Industrial Premium Layout) */
.card { 
  background: #111118; 
  padding: 1.5rem; 
  border-radius: 8px; 
  border: 1px solid rgba(255, 255, 255, 0.05); 
  transition: all 0.4s ease; 
  display: block; 
  position: relative; 
  overflow: hidden; 
  text-align: left;
}
.card:hover { 
  transform: translateY(-10px); 
  border-color: rgba(0, 122, 255, 0.3); 
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); 
}
.card-img-wrapper { 
  overflow: hidden; 
  border-radius: 6px; 
  margin-bottom: 1.5rem; 
  aspect-ratio: 16 / 10;
}
.card-img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.5s ease; 
}
.card:hover .card-img { 
  transform: scale(1.06); 
}
.card-footer { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding-top: 0.5rem;
}
.card h3 { 
  font-size: 1.4rem; 
  color: #fff; 
  font-weight: 800; 
  margin: 0;
  transition: color 0.3s;
}
.card:hover h3 {
  color: #007AFF;
}
.arrow-icon { 
  color: #fff; 
  transition: transform 0.3s ease, color 0.3s; 
}
.card:hover .arrow-icon { 
  transform: translateX(6px); 
  color: #007AFF;
}

/* Subpage Header */
.page-header { padding: 150px 0 40px; text-align: center; background: #050508; border-bottom: 1px solid rgba(0,122,255,0.2); position: relative; overflow: hidden; }
.page-header::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, #007AFF, transparent); }
.page-header h1 { font-size: 3.5rem; color: #fff; margin-bottom: 1.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.page-header p { font-size: 1.2rem; color: #aaa; max-width: 800px; margin: 0 auto; line-height: 1.8; }

/* Content Section */
.content-section { padding: 2rem 0 6rem 0; background: #050508; min-height: 50vh; }
.content-box { background: linear-gradient(145deg, #111116, #0a0a0d); padding: 3rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }
.content-box h2 { font-size: 2rem; margin-bottom: 1.5rem; color: #fff; font-weight: 800; }
.content-box p { color: #aaa; font-size: 1.1rem; line-height: 1.7; margin-bottom: 2rem; }
.content-box ul { color: #aaa; font-size: 1.1rem; line-height: 2; padding-left: 1.5rem; }

/* Main Notice Title */
.main-notice-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
}

/* Main Feature Boxes (Index Page) */
.main-feature-box {
    background: linear-gradient(145deg, #111116, #0a0a0d);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}
.notice-box { padding: 2.5rem 2rem; }
.partnership-box { padding: 2.5rem 2.5rem; }
h2.box-title { font-size: 1.2rem !important; text-align: left; }

/* Notice List Table (Common) */
.notice-list { width: 100%; border-collapse: collapse; margin-top: 2rem; color: #aaa; }
.notice-list th { border-top: 2px solid #007AFF; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 1rem; text-align: center; color: #fff; background: rgba(255,255,255,0.02); white-space: nowrap; word-break: keep-all; }
.notice-list td { border-bottom: 1px solid rgba(255,255,255,0.05); padding: 1.2rem 1rem; text-align: center; transition: background 0.2s; }
.notice-list tr:hover td { background: rgba(255,255,255,0.03); color: #fff; cursor: pointer; }
.notice-list td.title { text-align: left; padding-left: 2rem; }

/* Footer */
footer { background: #020203; padding: 5rem 0 3rem; text-align: center; color: #555; border-top: 1px solid rgba(255,255,255,0.05); }
footer .footer-info { margin-bottom: 2.5rem; font-size: 1rem; line-height: 1.8; }
footer .footer-info p { margin-bottom: 0.5rem; }

/* Hamburger Menu Icon */
.hamburger { display: none; cursor: pointer; flex-direction: column; justify-content: space-between; width: 30px; height: 21px; z-index: 1001; }
.hamburger span { display: block; height: 3px; width: 100%; background-color: #333; border-radius: 3px; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile Menu Overlay */
.mobile-menu-overlay { position: fixed; top: 70px; left: 0; width: 100%; height: calc(100vh - 70px); background: rgba(255, 255, 255, 0.98); z-index: 99; display: none; flex-direction: column; justify-content: flex-start; align-items: center; padding-top: 3rem; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; overflow-y: auto; }
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu-list { list-style: none; text-align: center; width: 100%; padding: 0; margin: 0; padding-bottom: 3rem; }
.mobile-menu-list > li { margin-bottom: 2rem; }
.mobile-menu-list > li > a { font-size: 1.8rem; font-weight: 800; color: #111; display: block; margin-bottom: 1.2rem; }
.mobile-sub-list { list-style: none; padding: 0; margin: 0; }
.mobile-sub-list li { margin-bottom: 0.8rem; }
.mobile-sub-list a { font-size: 1.1rem; color: #555; font-weight: 600; }
.page-subheader {
    color: #007AFF; 
    font-weight: bold; 
    margin-bottom: 0.5rem; 
    text-transform: uppercase; 
    font-size: 0.9rem; 
    letter-spacing: 1px;
}

#detail-category-badge {
    display: none !important;
}

.detail-header {
    display: none !important;
}

.detail-content {
    padding-top: 120px !important;
}

/* Product Detail Section Styles */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-detail-main-img-box {
    background: #111116; 
    border: 1px solid rgba(255,255,255,0.05); 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.5); 
    position: relative; 
    aspect-ratio: 4/3; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.product-detail-info {
    display: flex; 
    flex-direction: column; 
    gap: 1.8rem;
}

.product-detail-title {
    font-size: 2.5rem; 
    font-weight: 800; 
    color: #fff; 
    margin: 0; 
    line-height: 1.2;
}

.product-detail-model {
    color: #007AFF; 
    font-size: 1.15rem; 
    font-weight: 600; 
    margin-top: 0.5rem; 
    margin-bottom: 0;
}

.product-detail-desc {
    color: #ccc; 
    font-size: 1.1rem; 
    line-height: 1.8; 
    margin: 0;
}

.product-detail-actions {
    display: flex; 
    gap: 1rem; 
    margin-top: 0.5rem;
}

.product-detail-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.05rem;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
}

.product-detail-actions .btn-primary {
    flex: 2;
    background: #007AFF;
    color: #fff;
    border: 1px solid #007AFF;
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.25);
}

.product-detail-actions .btn-primary:hover {
    background: transparent;
    color: #007AFF;
}

.product-detail-actions .btn-secondary {
    flex: 1.5;
    background: #222; 
    border: 1px solid rgba(255,255,255,0.15); 
    color: #fff;
}

.product-detail-actions .btn-secondary:hover {
    background: #333;
}

.product-features-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    gap: 2rem; 
    margin-top: 3rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Header & Nav */
    .container { padding: 0 0.8rem; }
    header .container { flex-direction: row; height: 70px; padding: 0 1rem; gap: 0; justify-content: flex-start; }
    .logo-img { height: 45px; }
    .nav { display: none; } /* Hide main nav on mobile */
    .mega-menu { display: none !important; }
    .lang-selector { margin-left: 0.5rem; height: 70px; }
    .lang-current { padding: 0.4rem 0.5rem; font-size: 0.8rem; }
    .lang-current .fi { font-size: 0.9rem; }
    .hamburger { display: flex; margin-left: auto; } /* Show hamburger on right */
    .mobile-menu-overlay { display: flex; }

    /* Hero Section */
    .hero-content { padding-top: 100px; text-align: center; width: 100%; }
    .hero-content h1 { font-size: 1.7rem; margin-bottom: 1rem; }
    .hero-content h1 span { white-space: nowrap; }
    .hero-content p { font-size: 0.85rem; padding: 0 0.2rem; margin-bottom: 2rem; word-break: keep-all; overflow-wrap: break-word; line-height: 1.6; max-width: 100%; }
    .hero-content p b { display: block; margin-top: 0.3rem; font-size: 0.95rem; }
    .btn { padding: 0.8rem 2rem; width: 90%; max-width: 250px; font-size: 0.9rem; }

    /* Sections & Grids */
    .section { padding: 2rem 0; }
    .content-section { padding: 1rem 0 3rem 0; }
    .section h2 { font-size: 1.8rem; margin-bottom: 2rem; }
    .section-desc { font-size: 0.85rem; line-height: 1.6; margin: 0 auto 2.5rem auto; padding: 0 0.5rem; }
    .grid { grid-template-columns: 1fr; gap: 1.5rem; }
    
    /* 2-Column Inline Grids (Notice & Partnership) */
    .mobile-stack { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
    .mobile-stack h3 { font-size: 1.3rem !important; margin-bottom: 0.8rem !important; }
    .mobile-stack p { font-size: 0.8rem !important; margin-bottom: 1.5rem !important; }

    /* Cards */
    .card { padding: 1rem; }
    .card-img-wrapper { aspect-ratio: 16 / 9; }
    .card h3 { font-size: 1.2rem; }

    /* Subpage Header */
    .page-header { padding: 120px 1rem 30px; }
    .page-header h1 { font-size: 1.6rem; margin-bottom: 1rem; }
    .page-header p { font-size: 0.85rem; }

    /* Content Box */
    .content-box { padding: 1rem; }
    .content-box h2 { font-size: 1.5rem; }
    
    /* Main Feature Boxes (Mobile Full Width) */
    .notice-box { padding: 1.5rem 0.5rem; border-radius: 4px; }
    .partnership-box { padding: 1.5rem 1rem; border-radius: 4px; }
    h2.box-title { font-size: 1.1rem !important; }
    .desktop-only { display: none; }
    
    .main-notice-title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        box-orient: vertical;
        max-width: 100%;
        line-height: 1.4;
        padding-right: 10px;
    }
    
    /* Tables (Notice list) */
    .notice-list th:nth-child(3), .notice-list td:nth-child(3),
    .notice-list th:nth-child(4), .notice-list td:nth-child(4) { display: none; } /* Hide author and date on mobile */
    .notice-list th { white-space: nowrap; word-break: keep-all; font-size: 0.9rem; padding: 0.8rem 0.5rem; }
    .notice-list th:nth-child(2) { width: 80%; }
    .notice-list td { padding: 1rem 0.5rem; font-size: 0.9rem; }
    .notice-list td.title { padding-left: 0.5rem; }
    .notice-content-row td { padding: 1.5rem 0.8rem !important; }
    
    /* Notice Detail modal equivalent if any */
    #notice-modal > div { padding: 1.5rem !important; width: 95% !important; }

    /* Footer */
    footer { padding: 1.5rem 1rem 2rem; }
    footer .footer-info { font-size: 0.9rem; }
    
    /* Support Contact (Mobile) */
    .contact-phone { font-size: 1.75rem !important; }
    .contact-email { font-size: 1.4rem !important; }
    .contact-desc { font-size: 0.85rem !important; word-break: keep-all; }

    /* Product Detail Mobile Overrides */
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .product-detail-title {
        font-size: 1.8rem;
    }
    
    .product-detail-model {
        font-size: 1rem;
    }
    
    .product-detail-desc {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .product-detail-actions {
        flex-direction: row !important;
        gap: 0.6rem !important;
    }
    
    .product-detail-actions .btn {
        width: 50% !important;
        padding: 0.9rem 0.5rem !important;
        font-size: 0.9rem !important;
        flex: 1 !important;
    }
    
    .product-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    #detail-specs-container {
        padding: 1.2rem !important;
        font-size: 0.9rem;
    }

    /* Mobile Only Adjustments for Header and Spacing */
    .page-subheader {
        display: none !important;
    }

    .detail-content {
        padding-top: 90px !important;
    }

    .back-btn {
        margin-bottom: 1.5rem !important;
    }
}

/* Support Contact Defaults (PC) */
.contact-phone { font-size: 2.5rem; }
.contact-email { font-size: 2rem; }
.contact-desc { font-size: 1.1rem; }
