:root {
    --bg-color: #050505;
    --card-bg: rgba(30, 30, 30, 0.6);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --primary: #ff3b30;
    --accent: #007aff;
    --gradient-start: #ff3b30;
    --gradient-end: #ff9500;
    --glass-bg: rgba(10, 10, 10, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Noto Sans KR', sans-serif;
    --container-width: 1240px;
    --header-height: 70px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Offset for fixed header */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Skeleton Loading */
.skeleton-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    aspect-ratio: 1/1.5;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.03) 20%,
            rgba(255, 255, 255, 0.06) 60%,
            rgba(255, 255, 255, 0));
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

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

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 34px;
    height: 34px;
    stroke: #ff3b30;
    filter: drop-shadow(0 2px 4px rgba(255, 59, 48, 0.3));
}

.brand-name {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 32px;
    font-weight: 900;
    /* Extra Bold */
    letter-spacing: -1px;
    text-transform: capitalize;
    background: linear-gradient(135deg, #ff3b30 20%, #007aff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    padding-top: 4px;
    /* Optical alignment */
}

@media (max-width: 768px) {
    .brand-name {
        font-size: 26px;
    }

    .brand-icon {
        width: 28px;
        height: 28px;
    }
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

.nav-link:not(.youtube-link)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:not(.youtube-link):hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--text-main);
}

.youtube-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    padding: 8px 18px;
    border-radius: 100px;
    font-weight: 700;
    border: 1px solid rgba(255, 59, 48, 0.2);
    transition: all 0.3s ease;
}

.youtube-link:hover {
    background: rgba(255, 59, 48, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.2);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    overflow: visible;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);

}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Alive Aurora: Red, Blue, Purple moving mesh */
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 59, 48, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 122, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(150, 100, 255, 0.15) 0%, transparent 50%);
    background-size: 180% 180%;
    z-index: -1;
    filter: blur(80px);
    animation: auroraFloat 15s ease-in-out infinite alternate;
}

@keyframes auroraFloat {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    /* Removed max-width: 800px restriction for split layout */
}

/* Hero Split Layout */
.hero-split-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    margin: 0 auto;
    max-width: 1200px;
}

.hero-left-col {
    flex: 1;
    text-align: left;
    /* max-width: 600px; Remove limit to let flex work */
}

.hero-right-col {
    flex: 1;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 600px;
}

.hero-video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.hero-video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 960px) {
    .hero-split-layout {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-left-col {
        text-align: center;
    }
}




.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 48px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    font-weight: 700;
    font-size: 1.15rem;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(255, 59, 48, 0.3);
    border: none;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 59, 48, 0.4);
}

/* Products Section */
.products-section {
    padding: 60px 0 100px;
    background: linear-gradient(to bottom, transparent, rgba(20, 20, 20, 0.5));
    position: relative;
    z-index: 20;
}

/* Platform Tabs */
.platform-tabs-container {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 9999;
}

.platform-tabs {
    display: inline-flex;
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    gap: 4px;
    position: relative;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.platform-tab {
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    white-space: nowrap;
}

.platform-tab:hover {
    color: var(--text-main);
}

.platform-tab.active {
    background: var(--text-main);
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .platform-tabs-container {
        justify-content: flex-start;
        padding: 0 20px;
        margin-bottom: 30px;
        overflow-x: auto;
    }

    .platform-tabs {
        width: 100%;
        justify-content: space-between;
    }

    .platform-tab {
        padding: 10px 16px;
        flex: 1;
        text-align: center;
        font-size: 0.9rem;
    }
}

/* Section Header with Filter */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0;
    /* Remove default margin */
    letter-spacing: -0.01em;
}

.category-select {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='18px' height='18px'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.category-select:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.category-select option {
    background: #1a1a1a;
    color: var(--text-main);
}


.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(40, 40, 40, 0.8);
}

.product-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.product-image-wrapper {
    width: 100%;
    padding-top: 100%;
    position: relative;
    background: #151515;
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

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

.product-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.5;
    color: #e0e0e0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3em;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.product-price .original {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
}

.product-price .discount {
    color: var(--primary);
    font-size: 0.9rem;
    background: rgba(255, 59, 48, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.buy-button {
    margin-top: auto;
    display: block;
    width: 100%;
    padding: 14px;
    background: #333;
    color: white;
    text-align: center;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.product-card:hover .buy-button {
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

/* Footer */
footer {
    padding: 60px 0;
    background: #050505;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
}

.footer-content p {
    margin-bottom: 8px;
}

.disclaimer {
    font-size: 0.85rem;
    opacity: 0.6;
    max-width: 600px;
    margin: 20px auto 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Responsive */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --container-width: 100%;
    }

    .container {
        padding: 0 20px;
    }

    .hero {
        min-height: 60vh;
        height: auto;
        padding-bottom: 80px;
    }

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

    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 32px;
    }

    .logo-img {
        height: 36px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .product-info {
        padding: 16px;
    }

    .product-title {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 16px 36px;
        font-size: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .youtube-link span {
        display: none;
    }

    .youtube-link {
        padding: 8px 12px;
    }
}

/* Utilities & States */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--glass-border);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    opacity: 0.5;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out backwards;
}

.fade-in-up:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in-up:nth-child(2) {
    animation-delay: 0.15s;
}

.fade-in-up:nth-child(3) {
    animation-delay: 0.2s;
}

.fade-in-up:nth-child(4) {
    animation-delay: 0.25s;
}

.fade-in-up:nth-child(5) {
    animation-delay: 0.3s;
}

.fade-in-up:nth-child(6) {
    animation-delay: 0.35s;
}

.fade-in-up:nth-child(7) {
    animation-delay: 0.4s;
}

.fade-in-up:nth-child(8) {
    animation-delay: 0.45s;
}