/* ==========================================================================
   FlosisLab Cyber-Tech Brutalism Theme (ChainGPT Labs Style)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@700;900&family=Space+Grotesk:wght@500;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    /* Tech Color Palette */
    --tech-bg: #e5e7eb;
    --tech-surface: #f3f4f6;
    --tech-card: #ffffff;
    --tech-border: #9ca3af;
    --tech-border-light: #d1d5db;
    --tech-black: #0f172a;
    --tech-orange: #ff5500;
    --tech-orange-hover: #e04b00;
    --tech-text-muted: #4b5563;

    /* Fonts */
    --font-heading: 'Chakra Petch', 'Space Grotesk', 'Pretendard', sans-serif;
    --font-body: 'Space Grotesk', 'Pretendard', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--tech-bg);
    color: var(--tech-black);
    line-height: 1.5;
}

body {
    overflow-x: hidden;
    background-color: var(--tech-bg);
    min-height: 100vh;
}

/* Outer Full Grid Frame */
.grid-frame {
    width: 100%;
    min-height: 100vh;
    border-left: 1px solid var(--tech-border);
    border-right: 1px solid var(--tech-border);
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
}

.container-grid {
    max-width: 1360px;
    margin: 0 auto;
    border-left: 1px solid var(--tech-border);
    border-right: 1px solid var(--tech-border);
    background: var(--tech-bg);
}

/* Header Navbar Grid */
.navbar-grid {
    display: grid;
    grid-template-columns: 260px 1fr auto;
    border-bottom: 1px solid var(--tech-border);
    background: var(--tech-surface);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    padding: 18px 24px;
    border-right: 1px solid var(--tech-border);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--tech-black);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.nav-brand img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid var(--tech-black);
}

/* Dynamic Navbar Center Box */
.nav-equalizer-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 0 28px;
    width: 100%;
}

.smile-eq-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pixel-smile-badge {
    width: 32px;
    height: 32px;
    background: #facc15;
    border: 2px solid var(--tech-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--tech-black);
    box-shadow: 2px 2px 0px var(--tech-black);
    animation: smileBounce 0.8s ease-in-out infinite alternate;
}

@keyframes smileBounce {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-4px) scale(1.1) rotate(5deg); }
}

.eq-status-label {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--tech-black);
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.eq-bars-container-tall {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 26px;
    padding: 0;
    background: transparent;
    border: none;
}

.eq-bar-tall {
    width: 5px;
    background: var(--tech-orange);
    border-radius: 1px;
    animation: eqWaveFast 0.6s ease-in-out infinite alternate;
}

.eq-bar-tall:nth-child(1) { height: 8px; animation-delay: 0.05s; }
.eq-bar-tall:nth-child(2) { height: 22px; animation-delay: 0.25s; }
.eq-bar-tall:nth-child(3) { height: 26px; animation-delay: 0.15s; }
.eq-bar-tall:nth-child(4) { height: 12px; animation-delay: 0.4s; }
.eq-bar-tall:nth-child(5) { height: 24px; animation-delay: 0.3s; }
.eq-bar-tall:nth-child(6) { height: 18px; animation-delay: 0.5s; }
.eq-bar-tall:nth-child(7) { height: 26px; animation-delay: 0.1s; }
.eq-bar-tall:nth-child(8) { height: 10px; animation-delay: 0.35s; }

@keyframes eqWaveFast {
    0% { height: 4px; opacity: 0.4; }
    100% { height: 24px; opacity: 1; }
}

.nav-actions {
    display: flex;
    align-items: center;
    border-left: 1px solid var(--tech-border);
    padding: 12px 20px;
    gap: 12px;
}

.lang-selector {
    display: flex;
    gap: 4px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--tech-border);
    color: var(--tech-black);
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: var(--tech-black);
    color: #ffffff;
    border-color: var(--tech-black);
}

.btn-orange {
    background: var(--tech-orange);
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    font-weight: 800;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
    border-radius: 2px;
    white-space: nowrap;
}

.btn-orange:hover {
    background: var(--tech-orange-hover);
}

/* Grid Corner Squares (Orange Pixels) */
.square-corner {
    position: relative;
}

.square-corner::before, .square-corner::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--tech-orange);
    z-index: 10;
}

.square-corner::before { top: 12px; left: 12px; }
.square-corner::after { top: 12px; right: 12px; }

/* Hero Tech Section */
.hero-tech-grid {
    display: grid;
    grid-template-rows: auto auto;
    border-bottom: 1px solid var(--tech-border);
    background: var(--tech-surface);
    position: relative;
}

.hero-giant-title {
    padding: 40px 32px;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7.5vw, 7.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -2px;
    text-transform: uppercase;
    color: var(--tech-black);
    border-bottom: 1px solid var(--tech-border);
    word-break: break-word;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.char-slide {
    display: inline-block;
    opacity: 0;
    transform: translateX(100vw);
    animation: slideInFromRightStack 1.2s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes slideInFromRightStack {
    0% {
        opacity: 0;
        transform: translateX(100vw);
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 220px;
    align-items: stretch;
}

.hero-sub-box {
    padding: 32px;
    border-right: 1px solid var(--tech-border);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    min-height: 140px;
}

.hero-sub-box:last-child {
    border-right: none;
}

.hero-sub-box p {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--tech-black);
    line-height: 1.6;
}

/* Bento Modules Grid System */
.bento-section-title {
    padding: 24px 32px;
    border-bottom: 1px solid var(--tech-border);
    background: var(--tech-bg);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Bento Block 1: TravelMoney (Portrait 2-Column Module) */
.bento-row-portrait {
    display: grid;
    grid-template-columns: 460px 1fr;
    border-bottom: 1px solid var(--tech-border);
    background: var(--tech-card);
}

.bento-phone-col {
    padding: 40px;
    border-right: 1px solid var(--tech-border);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8fafc;
}

.phone-tech-frame {
    width: 250px;
    height: 500px;
    background: #000;
    border: 6px solid #1e293b;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    max-width: 100%;
}

.phone-tech-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bento-info-col {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-app-tag {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--tech-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.bento-app-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.bento-app-desc {
    font-size: 1.1rem;
    color: var(--tech-text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.bento-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.bento-spec-item {
    border: 1px solid var(--tech-border-light);
    padding: 16px;
    background: var(--tech-surface);
}

.bento-spec-item h5 {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 4px;
}

.bento-spec-item p {
    font-size: 0.85rem;
    color: var(--tech-text-muted);
}

/* Bento Block 2: Neroa (Landscape Wide Module) */
.bento-row-landscape {
    display: grid;
    grid-template-columns: 1fr;
    border-bottom: 1px solid var(--tech-border);
    background: var(--tech-surface);
}

.tv-tech-frame {
    width: 100%;
    max-width: 860px;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 8px solid #0f172a;
    border-radius: 12px;
    margin: 30px auto 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.tv-tech-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Partner Logos Footer Band */
.partners-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--tech-border);
    background: var(--tech-card);
}

.partner-box {
    padding: 24px;
    border-right: 1px solid var(--tech-border);
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.partner-box:last-child {
    border-right: none;
}

/* Carousel Section */
.carousel-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--tech-black);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 20;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-caption {
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    margin-top: 16px;
}

/* Policy Card */
.policy-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 16px;
}

.policy-card-tech {
    background: var(--tech-card);
    border: 1px solid var(--tech-border);
    padding: 48px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.policy-card-tech h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 900;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--tech-black);
    padding-bottom: 16px;
}

.policy-card-tech h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--tech-orange);
}

.policy-card-tech p, .policy-card-tech ul {
    font-size: 1rem;
    color: var(--tech-text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.policy-card-tech ul {
    padding-left: 24px;
}

/* Section Common Container Padding Helper */
.section-content-padding {
    padding: 40px;
}

/* Footer Grid */
.footer-grid {
    padding: 32px 16px;
    text-align: center;
    background: var(--tech-surface);
    border-top: 1px solid var(--tech-border);
}

.footer-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--tech-black);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

footer p {
    font-size: 0.85rem;
    color: var(--tech-text-muted);
}

/* ==========================================================================
   Responsive Breakpoints (Tablets <= 900px, Smartphones <= 600px)
   ========================================================================== */

@media (max-width: 900px) {
    .navbar-grid {
        grid-template-columns: 1fr !important;
    }

    .nav-brand {
        border-right: none;
        border-bottom: 1px solid var(--tech-border);
        justify-content: center;
        padding: 14px 20px;
    }

    .nav-equalizer-box {
        padding: 12px 20px;
        border-bottom: 1px solid var(--tech-border);
        gap: 20px;
        justify-content: space-between;
    }

    .nav-actions {
        border-left: none;
        padding: 12px 20px;
        justify-content: space-between;
        width: 100%;
    }

    .hero-sub-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-sub-box {
        grid-column: span 1 !important;
        border-right: none !important;
        border-bottom: 1px solid var(--tech-border);
        padding: 24px;
        min-height: auto;
    }

    .hero-sub-box:last-child {
        border-bottom: none;
    }

    .bento-row-portrait {
        grid-template-columns: 1fr;
    }

    .bento-phone-col {
        border-right: none;
        border-bottom: 1px solid var(--tech-border);
        padding: 32px 20px;
    }

    .bento-info-col {
        padding: 32px 24px;
    }

    .partners-band {
        grid-template-columns: 1fr 1fr;
    }

    .partner-box {
        border-bottom: 1px solid var(--tech-border);
        padding: 18px 12px;
        font-size: 0.95rem;
    }

    .partner-box:nth-child(2n) {
        border-right: none;
    }

    .section-content-padding {
        padding: 28px 20px;
    }
}

@media (max-width: 600px) {
    .grid-frame {
        border-left: none;
        border-right: none;
    }

    .container-grid {
        border-left: none;
        border-right: none;
    }

    .nav-equalizer-box {
        flex-direction: row;
        gap: 12px;
        padding: 10px 16px;
    }

    .eq-status-label {
        font-size: 0.9rem;
    }

    .hero-giant-title {
        padding: 28px 16px;
        gap: 12px;
    }

    .hero-giant-title img {
        width: 48px !important;
        height: 48px !important;
        border-radius: 12px !important;
    }

    .bento-section-title {
        padding: 16px 20px;
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .bento-info-col {
        padding: 24px 16px;
    }

    .bento-app-title {
        font-size: 2.2rem;
    }

    .bento-app-desc {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .bento-spec-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .phone-tech-frame {
        width: 220px;
        height: 440px;
        border-width: 5px;
        border-radius: 24px;
    }

    .tv-tech-frame {
        border-width: 5px;
        margin: 20px auto 14px;
    }

    .section-content-padding {
        padding: 20px 16px;
    }

    .policy-card-tech {
        padding: 24px 16px;
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .policy-card-tech h1 {
        font-size: 1.6rem;
    }

    .policy-card-tech h2 {
        font-size: 1.25rem;
        margin-top: 24px;
    }

    .footer-grid {
        padding: 24px 16px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-links span {
        display: none;
    }
}
