/* Reset & Base Styles */
:root {
    --bg-white: #ffffff;
    --bg-light: #f9f9f9;
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-light: #888888;
    --border-color: #eeeeee;
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-en), var(--font-jp);
    background-color: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    display: flex;
    gap: 8px;
    align-items: center;
}

.logo-jp {
    font-weight: 300;
    color: var(--text-secondary);
}

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

.main-nav a {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Layout Utilities */
.content-section {
    padding: 120px 0;
}

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

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

.section-label {
    position: relative;
    z-index: 1;
    display: inline-block;
    font-size: 0.8rem;
    /* Revert to original size */
    font-weight: 400;
    text-transform: uppercase;
    /* Revert to original style */
    letter-spacing: 0.1em;
    /* Revert to original style */
    color: var(--text-light);
    margin-bottom: 20px;
    /* Purple underline */
    padding-bottom: 0;
}

.section-label-line {
    display: inline-block;
    left: 5px;
    position: absolute;
    z-index: -1;
    width: calc(100% + 6px);
    height: 4px;
    background-color: #ffc1078a;
    bottom: 5px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 가로 중앙 정렬 */
    text-align: center;
    /* 텍스트 중앙 정렬 */
    padding-top: 80px;
    /* Offset for header */
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -0.03em;
}

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

/* Typing Animation Cursor */
.cursor {
    display: inline-block;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: blink 1s infinite;
    vertical-align: baseline;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* About Section */
.about-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.about-content .lead-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Brands Slider */
.brand-slider-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0 60px;
}

.brand-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 0;
    /* 카드를 분리하기 위해 트랙 배경/테두리 제거 */
    background-color: transparent;
    border: none;
}

.brand-item {
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background-color: var(--bg-white);
    padding: 60px 40px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.4s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.brand-item:hover {
    background-color: #fafafa;
    transform: translateY(-5px);
}

/* Specific Brand Backgrounds */
.brand-item.brand-boj {
    background-image: url('../images/topbrand/boj_card.jpg');
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
}

.brand-item.brand-boj::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.brand-item.brand-boj .brand-info {
    position: relative;
    z-index: 2;
}

.brand-item.brand-boj h4 {
    color: var(--bg-white);
}

.brand-item.brand-boj .brand-desc {
    color: rgba(255, 255, 255, 0.8);
}

.brand-item.brand-houseofhur {
    background-image: url('../images/topbrand/houseofhur_card.jpg');
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
}

.brand-item.brand-houseofhur::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.brand-item.brand-houseofhur .brand-info {
    position: relative;
    z-index: 2;
}

.brand-item.brand-houseofhur h4 {
    color: var(--bg-white);
}

.brand-item.brand-houseofhur .brand-desc {
    color: rgba(255, 255, 255, 0.9);
}

.brand-item.brand-purcell {
    background-image: url('../images/topbrand/purcell_card_card.jpg');
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
}

.brand-item.brand-purcell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.brand-item.brand-purcell .brand-info {
    position: relative;
    z-index: 2;
}

.brand-item.brand-purcell h4 {
    color: var(--bg-white);
}

.brand-item.brand-purcell .brand-desc {
    color: rgba(255, 255, 255, 0.9);
}

.brand-item.brand-skin1004 {
    background-image: url('../images/topbrand/skin1004_card.jpg');
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
}

.brand-item.brand-skin1004::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.brand-item.brand-skin1004 .brand-info {
    position: relative;
    z-index: 2;
}

.brand-item.brand-skin1004 h4 {
    color: var(--bg-white);
}

.brand-item.brand-skin1004 .brand-desc {
    color: rgba(255, 255, 255, 0.9);
}

.slider-controls {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    padding: 5px 15px;
    border-radius: 100px;
    gap: 15px;
    margin-top: 50px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid var(--border-color);
}

.slider-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

@media (max-width: 1024px) {
    .brand-item {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .brand-item {
        flex: 0 0 calc(100% - 20px);
    }
}

.brand-item h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    min-height: 1.5em;
    /* 타이핑 시 레이아웃 흔들림 방지 */
    visibility: hidden;
    /* 초기 숨김 (JS에서 처리) */
}

/* Brand Title Typing Cursor */
.brand-item h4.typing::after {
    content: '|';
    margin-left: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.brand-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Business Section */
.business-text h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.business-text p {
    color: var(--text-secondary);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.contact-title {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.contact-link {
    display: inline-block;
    margin-top: 30px;
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 5px;
}

/* Footer */
.site-footer {
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-light);
}

.footer-info {
    margin-bottom: 20px;
}

.company-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Active State for Hamburger */
.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 15px 0;
    }

    .mobile-menu-btn {
        display: flex;
        /* Show hamburger on mobile */
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-white);
        padding: 80px 40px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }

    /* Simplified for prototype */

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

    .cursor {
        font-size: 3rem;
    }

    .hero-logo {
        max-width: 200px;
    }

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

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

    .brand-item {
        padding: 40px 20px;
        min-height: auto;
    }

    .content-section {
        padding: 80px 0;
    }
}

/* Facts Section Styles */
#facts {
    position: relative;
    /* overflow: hidden; */
    /* Optional: if we want to clip */
}

.facts-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    /* Initial width, controlled by JS */
    height: 100%;
    background-color: #111111;
    z-index: -1;
    transition: width 0.1s linear;
    /* Smoothness for scroll scrub */
}

/* Ensure content stays on top */
#facts .container {
    position: relative;
    z-index: 2;
}

.facts-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.facts-intro {
    flex: 1 1 100%;
}

.facts-header {
    position: relative;
    margin-bottom: 20px;
    height: 120px;
    /* Adjust based on floating text */
    display: flex;
    align-items: center;
}

.facts-floating-text {
    position: absolute;
    font-size: 10rem;
    font-weight: 700;
    letter-spacing: -4px;
    background-image: linear-gradient(135deg, transparent 45%, #fff 45%, #fff 55%, transparent 0);
    background-clip: text;
    background-size: 4px 4px;
    -webkit-text-fill-color: transparent;
    color: rgba(255, 255, 255, 0.05);
    opacity: .4;
    line-height: 1;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    z-index: 1;
    line-height: 9rem;
    display: inline-block;
}

.facts-main-title {
    position: relative;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    z-index: 2;
    text-transform: capitalize;
    margin-left: 20px;
}

.facts-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 90%;
}

.highlight-underline {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-talk {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: #fff;
    color: #111;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-talk:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.btn-talk .arrow-icon {
    font-size: 1.2rem;
}

.facts-grid {
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.fact-box {
    padding: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.fact-box:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.fact-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.fact-number-wrap {
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.fact-symbol {
    font-size: 1rem;
    color: #badc58;
    /* Green accent from prev context, or use purple #764ba2 */
}

.fact-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.fact-suffix {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-top: 5px;
}

@media (min-width: 1024px) {
    .facts-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .facts-intro {
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 60px;
        display: flex;
        justify-content: center;
        padding-right: 0;
    }

    .facts-header {
        width: 100%;
        justify-content: center;
    }

    .facts-floating-text {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .facts-grid {
        flex: 0 0 100%;
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .facts-grid {
        grid-template-columns: 1fr;
    }

    .facts-floating-text {
        font-size: 4rem;
    }

    .facts-main-title {
        font-size: 2.5rem;
    }
}