/* Reset & Base Variables */
:root {
    --bg-color: #0d0f12;
    --bg-secondary: #1a1d24;
    --text-main: #f0f2f5;
    --text-muted: #a0aab2;
    --accent-color: #3b82f6;
    --accent-hover: #60a5fa;
    --glass-bg: rgba(26, 29, 36, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-text: linear-gradient(to right, #60a5fa, #a78bfa);
    --border-radius: 16px;
    --transition-speed: 0.3s;
    --font-sans: 'Inter', 'Noto Sans KR', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body.dark-theme {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mt-5 {
    margin-top: 3rem;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

.icon-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(13, 15, 18, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .logo span {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

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

.nav-links li a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--accent-hover);
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-selector i {
    color: var(--text-muted);
}

.lang-selector select {
    background: transparent;
    color: var(--text-main);
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.lang-selector select option {
    background: var(--bg-secondary);
    color: var(--text-main);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    /* Placeholder fallback */
    background: url('../images/hero-bg.png') center/cover no-repeat;
    background-color: var(--bg-secondary);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(13, 15, 18, 0.6), rgba(13, 15, 18, 0.95));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #a0aab2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Products Section */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.product-img {
    height: 250px;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

.product-img.placeholder-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.02) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    opacity: 0.5;
}

.product-info {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 20px;
}

/* Toggleable product details (Quick / Titan / Resin) */
.product-info.collapsed p,
.product-info.collapsed .specs-list {
    display: none;
}

.product-toggle-title {
    cursor: pointer;
    position: relative;
    padding-right: 18px;
}

.product-toggle-title::after {
    content: '＋';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--accent-hover);
}

.product-info:not(.collapsed) .product-toggle-title::after {
    content: '－';
}

.specs-list {
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.specs-list li .highlight {
    font-weight: 700;
    color: #fff;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Finder Section */
.finder-section {
    background: radial-gradient(circle at top, rgba(148, 163, 255, 0.08), transparent 55%);
}

.finder-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 30px;
    align-items: flex-start;
}

.finder-questions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.finder-question h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.finder-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.finder-option {
    text-align: left;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.7);
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.finder-option:hover {
    border-color: var(--accent-hover);
    color: #fff;
}

.finder-option.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

.finder-result {
    position: sticky;
    top: 100px;
}

.finder-result h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.finder-result-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.finder-result-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.6);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.finder-result-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.finder-result-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.finder-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn.btn-outline {
    background: transparent;
    color: var(--accent-hover);
    border: 1px solid rgba(148, 163, 255, 0.6);
    box-shadow: none;
}

.btn.btn-outline:hover {
    background: rgba(37, 99, 235, 0.15);
    color: #fff;
}

/* Buyer docs section */
.buyer-section {
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.08), transparent 55%);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.download-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.download-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Living Section */
.living-section {
    position: relative;
    background: url('../images/living-bg.png') center/cover no-repeat;
    background-color: #111;
}

.living-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 15, 18, 0.85);
    backdrop-filter: blur(5px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-box {
    text-align: center;
}

.feature-box h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.applications-container {
    max-width: 900px;
    margin: 50px auto 0;
}

.app-list {
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 32px;
    padding: 0 32px;
}

.app-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-muted);
    flex: 1;
}

.app-list li span {
    display: block;
}

/* Living Main Photo */
.living-main-photo {
    width: 100%;
    text-align: center;
}

.image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 900px;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--glass-border);
}

.living-main-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-wrapper:hover .living-main-img {
    transform: scale(1.05);
}

.click-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 25px;
    border-radius: 30px;
    background: rgba(13, 15, 18, 0.8);
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    z-index: 10;
}

.image-wrapper:hover .click-hint {
    background: var(--gradient-primary);
    transform: translateX(-50%) translateY(-5px);
}

.living-detail-link {
    text-decoration: none;
}

/* Living detail modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.modal-overlay.open {
    display: flex;
}

.modal-content.living-modal {
    max-width: 960px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-content.finder-modal {
    max-width: 1024px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-list {
    margin: 0 0 1rem 1.2rem;
    padding: 0;
}

.modal-list li {
    margin-bottom: 0.4rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.living-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.living-table th,
.living-table td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 10px;
    text-align: left;
}

.living-table th {
    background: rgba(255, 255, 255, 0.03);
}

.modal-quote {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 0.6rem;
}

/* Floating finder button */
.floating-finder-btn {
    position: fixed;
    right: 32px;
    bottom: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.6);
    z-index: 1500;
}

.floating-finder-btn i {
    font-size: 1rem;
}

.floating-finder-btn span {
    font-size: 0.9rem;
}

/* Footer */
.footer {
    padding: 40px 0;
    background: #0a0c0e;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Floating Animation */
.floating-item {
    animation: floating 3s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Premium lineup: 위에 제목, 아래에 바이크/자동차 카드 2열 */
.premium-heading {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 40px;
    text-align: center;
}

.premium-two-col {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
}

.premium-col {
    flex: 0 0 320px;
    text-align: center;
}

.premium-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 12px;
}

.premium-tag {
    padding: 6px 20px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    font-weight: 600;
    font-size: 2.5rem;
}


.premium-card {
    width: 100%;
    max-width: 320px;
    border-radius: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.premium-card-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.premium-card-link:hover .premium-card {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .premium-two-col {
        flex-direction: column;
        gap: 32px;
    }

    .premium-heading {
        font-size: 2rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple mobile clear */
    }

    .hamburger {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .finder-layout {
        grid-template-columns: 1fr;
    }

    .finder-result {
        position: static;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .applications-container {
        margin-top: 40px;
    }

    .app-list {
        flex-direction: column;
        padding: 0 16px;
    }

    .floating-finder-btn {
        right: 16px;
        bottom: 24px;
        padding: 9px 16px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}