* { box-sizing: border-box; margin: 0; padding: 0; }
        body {
            font-family: 'Pretendard', sans-serif;
            background: #000000;
            color: #e2e8f0;
            overflow-x: hidden;
            padding-top: 76px;
        }
        .font-mono { font-family: 'JetBrains Mono', monospace; }

        /* 3D Cube Styles */
        .scene {
            perspective: 1000px;
            width: 260px;
            height: 260px;
            margin: 0 auto;
            cursor: grab;
        }
        .scene:active {
            cursor: grabbing;
        }
        .cube {
            width: 100%;
            height: 100%;
            position: relative;
            transform-style: preserve-3d;
        }
        .cube-face {
            position: absolute;
            width: 260px;
            height: 260px;
            background: rgba(10, 10, 10, 0.95);
            border: 2px solid rgba(148, 163, 184, 0.2);
            box-shadow: 0 0 50px rgba(56, 189, 248, 0.05) inset;
            color: #cbd5e1;
            font-family: 'JetBrains Mono', monospace;
            font-size: 10px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            backface-visibility: visible;
            overflow: hidden;
            border-radius: 4px;
            user-select: none;
        }

        /* Face Transforms */
        .face-front  { transform: rotateY(0deg) translateZ(130px); }
        .face-back   { transform: rotateY(180deg) translateZ(130px); }
        .face-right  { transform: rotateY(90deg) translateZ(130px); }
        .face-left   { transform: rotateY(-90deg) translateZ(130px); }
        .face-top    { transform: rotateX(90deg) translateZ(130px); }
        .face-bottom { transform: rotateX(-90deg) translateZ(130px); }

        /* Face Colors */
        .face-front  { border-color: rgba(244, 63, 94, 0.6); color: #fda4af; }
        .face-back   { border-color: rgba(251, 146, 60, 0.6); color: #fdba74; }
        .face-right  { border-color: rgba(250, 204, 21, 0.6); color: #fde047; }
        .face-left   { border-color: rgba(96, 165, 250, 0.6); color: #93c5fd; }
        .face-top    { border-color: rgba(52, 211, 153, 0.6); color: #6ee7b7; }
        .face-bottom { border-color: rgba(167, 139, 250, 0.6); color: #c4b5fd; }

        .glass-panel {
            background: rgba(15, 23, 42, 0.5);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .feature-card {
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .feature-card:hover {
            transform: translateY(-8px);
            border-color: rgba(59, 130, 246, 0.5);
            box-shadow: 0 20px 40px -15px rgba(59, 130, 246, 0.2);
        }

        .gradient-text {
            background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: #0f172a; }
        ::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }

        .magazine-section { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
        .magazine-section:hover { background: rgba(255, 255, 255, 0.02); }

        .ascii-art {
            white-space: pre;
            line-height: 1.15;
            font-size: 9px;
        }

        .nav-menu-item {
            transition: all 0.2s;
            padding: 6px 10px;
            border-radius: 6px;
            cursor: pointer;
        }

        .nav-menu-item:hover {
            background: rgba(255,255,255,0.1);
            color: white;
        }

        .ascii-art {
            line-height: 1.1;
            white-space: pre;
            text-align: center;
        }
/* --- Magazine Style Redesign --- */

.mag-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}

@media (min-width: 1024px) {
    .mag-title {
        font-size: 4.5rem;
    }
}

.mag-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.1;
    position: absolute;
    top: -2rem;
    left: -1rem;
    z-index: 0;
}

.mag-visual-box {
    position: relative;
    background: linear-gradient(145deg, rgba(23, 23, 23, 0.8), rgba(10, 10, 10, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mag-visual-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 20px 20px;
}

.mag-tag {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.mag-footer {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    opacity: 0.5;
}

/* Specific Visuals */
.viz-3d-cube-wrap {
    transform-style: preserve-3d;
    perspective: 800px;
}
.viz-cube {
    width: 120px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    animation: viz-spin 10s infinite linear;
}
.viz-face {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(167, 139, 250, 0.5);
    background: rgba(167, 139, 250, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #fff;
    font-weight: bold;
    backface-visibility: visible;
}
.viz-face:nth-child(1) { transform: rotateY(0deg) translateZ(60px); }
.viz-face:nth-child(2) { transform: rotateY(180deg) translateZ(60px); }
.viz-face:nth-child(3) { transform: rotateY(90deg) translateZ(60px); }
.viz-face:nth-child(4) { transform: rotateY(-90deg) translateZ(60px); }
.viz-face:nth-child(5) { transform: rotateX(90deg) translateZ(60px); }
.viz-face:nth-child(6) { transform: rotateX(-90deg) translateZ(60px); }

@keyframes viz-spin {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.viz-node {
    width: 60px;
    height: 60px;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.viz-connector {
    position: absolute;
    background: rgba(255,255,255,0.1);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
}

/* ==================== MAGAZINE GRID LAYOUT ==================== */
.mag-section {
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

.mag-section:nth-child(odd) {
    background: linear-gradient(180deg, rgba(5,5,10,0.9) 0%, rgba(15,23,42,0.3) 100%);
}

.mag-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Main Magazine Grid */
.magazine-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 0;
    align-items: start;
    grid-auto-rows: auto;
}

/* Grid Item Sizing */
.mag-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mag-card:hover .mag-card-bg {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(var(--mag-color, 59 130 246), 0.6);
}

.mag-card:hover {
    transform: translateY(-8px);
}

/* Item 1: Full width (6 columns) */
.mag-card.item-1 {
    grid-column: 1 / 7;
    grid-row: 1;
    min-height: auto;
    height: auto;
}

/* Item 2: 3 columns */
.mag-card.item-2 {
    grid-column: 1 / 4;
    grid-row: 2;
    min-height: auto;
    height: auto;
}

/* Item 3: 3 columns */
.mag-card.item-3 {
    grid-column: 4 / 7;
    grid-row: 2;
    min-height: auto;
    height: auto;
}

/* Item 4: 3 columns, 2 rows (bottom left) */
.mag-card.item-4 {
    grid-column: 1 / 4;
    grid-row: 4 / 6;
    min-height: auto;
    height: auto;
}

/* Item 5: Full width (top - 6 columns) */
.mag-card.item-5 {
    grid-column: 1 / 7;
    grid-row: 3;
    min-height: auto;
    height: auto;
}

/* Item 6: 3 columns, 2 rows (bottom right) */
.mag-card.item-6 {
    grid-column: 4 / 7;
    grid-row: 4 / 6;
    min-height: auto;
    height: auto;
}

/* Card Content */
.mag-card-bg {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(var(--mag-color, 59 130 246), 0.4);
    border-radius: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.mag-card-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 20px 20px;
    pointer-events: none;
}

.mag-card-inner {
    position: relative;
    z-index: 2;
}

.mag-card-header {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mag-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.mag-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.item-1 .mag-title { font-size: 3.5rem; }
.item-2 .mag-title,
.item-3 .mag-title,
.item-5 .mag-title,
.item-6 .mag-title { font-size: 1.5rem; }
.item-4 .mag-title { font-size: 2.2rem; }

.mag-divider {
    width: 50px;
    height: 3px;
    margin: 1.5rem 0;
    background: currentColor;
    opacity: 0.5;
}

.item-2 .mag-divider,
.item-3 .mag-divider,
.item-5 .mag-divider,
.item-6 .mag-divider { width: 30px; margin: 1rem 0; }

.item-2 .mag-card-bg,
.item-3 .mag-card-bg,
.item-5 .mag-card-bg,
.item-6 .mag-card-bg { padding: 2rem; }

.mag-desc {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.item-2 .mag-desc,
.item-3 .mag-desc,
.item-5 .mag-desc,
.item-6 .mag-desc { font-size: 0.95rem; margin-bottom: 1.5rem; }

.mag-cta {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: inherit;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mag-cta:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}

/* Color Themes */
.mag-card.blue { --mag-color: rgb(59, 130, 246); }
.mag-card.purple { --mag-color: rgb(147, 51, 234); }
.mag-card.emerald { --mag-color: rgb(52, 211, 153); }
.mag-card.pink { --mag-color: rgb(236, 72, 153); }
.mag-card.yellow { --mag-color: rgb(234, 179, 8); }
.mag-card.rose { --mag-color: rgb(244, 63, 94); }

.mag-label,
.mag-divider {
    color: rgba(var(--mag-color, 59 130 246), 0.9);
}

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

@keyframes rotateX {
    from { transform: rotateX(0deg); }
    to { transform: rotateX(360deg); }
}

@keyframes rotateY {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

.mag-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.mag-card.item-1 { animation-delay: 0.1s; }
.mag-card.item-2 { animation-delay: 0.2s; }
.mag-card.item-3 { animation-delay: 0.3s; }
.mag-card.item-4 { animation-delay: 0.4s; }
.mag-card.item-5 { animation-delay: 0.5s; }
.mag-card.item-6 { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 1024px) {
    .magazine-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 3rem 2rem;
    }

    .mag-card.item-1 {
        grid-column: 1 / 3;
        min-height: 350px;
    }

    .mag-card.item-2,
    .mag-card.item-3,
    .mag-card.item-5,
    .mag-card.item-6 {
        grid-column: 1 / 3;
        min-height: 350px;
    }

    .mag-card.item-4 {
        grid-column: 1 / 3;
        grid-row: auto;
        min-height: 350px;
    }
}

@media (max-width: 640px) {
    .magazine-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .mag-card {
        grid-column: 1 !important;
    }

    .mag-title {
        font-size: 1.5rem;
    }
}
