/* ==========================================================================
   mujun.dev -- Industrial-Modern Developer Site
   Palette: Concrete Steel
   Fonts: Oswald, IBM Plex Sans, IBM Plex Mono
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --light-concrete: #D8D4D0;
    --dark-concrete: #2A2828;
    --steel-gray: #8A8888;
    --blueprint-blue: #3A5068;
    --rebar-orange: #C07040;
    --light-text: #E0DCD8;
    --dark-text: #1A1818;
    --blueprint-bg: #E0E4E8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(13px, 0.9vw, 16px);
    line-height: 1.65;
    color: var(--dark-text);
    background-color: var(--light-concrete);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- SVG Filters (hidden) --- */
.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* --- Structural Labels (fixed at viewport edges) --- */
.structural-labels {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.label {
    position: fixed;
    font: 9px 'IBM Plex Mono', monospace;
    color: rgba(138, 136, 136, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.label-tl {
    top: 12px;
    left: 12px;
}

.label-tr {
    top: 12px;
    right: 12px;
}

.label-bl {
    bottom: 12px;
    left: 12px;
}

.label-br {
    bottom: 12px;
    right: 12px;
}

.label-ml {
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
}

.label-mr {
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
}

/* ==========================================================================
   HERO SECTION -- Opening Viewport (100vh)
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-color: var(--light-concrete);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Subtle vertical center guide line on hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 100%;
    border-left: 1px dashed rgba(138, 136, 136, 0.12);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1;
    position: relative;
    z-index: 2;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px 80px 80px;
}

.logotype {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(42px, 6vw, 80px);
    text-transform: uppercase;
    color: var(--dark-text);
    letter-spacing: -0.02em;
    line-height: 0.95;
    margin-bottom: 24px;
}

.hero-tagline {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: clamp(14px, 1.2vw, 18px);
    color: var(--steel-gray);
    line-height: 1.5;
    margin-bottom: 40px;
    max-width: 400px;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-item {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--steel-gray);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meta-label {
    color: var(--rebar-orange);
    margin-right: 8px;
}

.hero-right {
    position: relative;
    background-color: var(--blueprint-bg);
    overflow: hidden;
}

/* Blueprint background container */
.blueprint-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.blueprint-bg.visible {
    opacity: 1;
}

.blueprint-bg svg {
    width: 100%;
    height: 100%;
}

/* Hero center divider (steel-colored) */
.hero-divider {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--steel-gray);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    transform: translateX(-1px);
}

.divider-node {
    width: 6px;
    height: 6px;
    background: var(--steel-gray);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.scroll-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    color: var(--steel-gray);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.scroll-line {
    width: 1px;
    height: 30px;
    background: var(--steel-gray);
    animation: scrollPulse 2s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ==========================================================================
   SPLIT SECTIONS
   ========================================================================== */
.split-section {
    position: relative;
    min-height: 80vh;
    overflow: hidden;
}

.section-marker {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    color: rgba(138, 136, 136, 0.35);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 10;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 2px 1fr;
    min-height: 80vh;
}

/* --- Zones (Left: dark, Right: light) --- */
.zone-left {
    background-color: var(--dark-concrete);
    color: var(--light-text);
    position: relative;
}

.zone-right {
    background-color: var(--light-concrete);
    color: var(--dark-text);
    position: relative;
}

.zone-content {
    padding: 80px 60px;
    max-width: 640px;
    position: relative;
    z-index: 1;
}

.zone-left .zone-content {
    margin-left: auto;
}

.zone-right .zone-content {
    margin-right: auto;
}

.zone-label {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: var(--rebar-orange);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 52px);
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 32px;
}

.zone-left .section-title {
    color: var(--light-text);
}

.zone-right .section-title {
    color: var(--dark-text);
}

/* Body text inside zones */
.zone-right p {
    margin-bottom: 16px;
    line-height: 1.65;
}

.zone-right p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   SLIDE-REVEAL ANIMATIONS
   ========================================================================== */
.slide-left {
    transform: translateX(-60px);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.slide-right {
    transform: translateX(60px);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.slide-left.revealed,
.slide-right.revealed {
    transform: translateX(0);
    opacity: 1;
}

/* ==========================================================================
   ZONE DIVIDER (Steel center bar with structural markers)
   ========================================================================== */
.zone-divider {
    position: relative;
    background: var(--steel-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.divider-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--steel-gray);
}

.divider-marker {
    width: 6px;
    height: 6px;
    background: var(--steel-gray);
    border: 1px solid var(--dark-concrete);
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   CONCRETE TEXTURE OVERLAY (4% opacity noise)
   ========================================================================== */
.hero::after,
.zone-left::after,
.zone-right::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   CODE BLOCK
   ========================================================================== */
.code-block {
    background: rgba(0, 0, 0, 0.3);
    border-left: 2px solid var(--rebar-orange);
    padding: 20px 24px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    line-height: 1.7;
    color: var(--light-text);
    overflow-x: auto;
    margin-top: 24px;
    white-space: pre;
}

.code-block code {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* ==========================================================================
   SPEC TABLE
   ========================================================================== */
.spec-table {
    margin-top: 32px;
    border-top: 1px solid rgba(138, 136, 136, 0.3);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(138, 136, 136, 0.15);
}

.spec-key {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--steel-gray);
}

.spec-val {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    color: var(--dark-text);
}

/* ==========================================================================
   TOOL LIST
   ========================================================================== */
.tool-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 8px;
}

.tool-item {
    border-left: 2px solid var(--rebar-orange);
    padding-left: 20px;
}

.tool-id {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: var(--rebar-orange);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 6px;
}

.tool-name {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2vw, 24px);
    text-transform: uppercase;
    color: var(--light-text);
    margin-bottom: 8px;
}

.tool-desc {
    font-size: clamp(13px, 0.9vw, 15px);
    color: rgba(224, 220, 216, 0.75);
    line-height: 1.6;
    margin-bottom: 8px;
}

.tool-specs {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.tool-spec {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    color: var(--steel-gray);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ==========================================================================
   BLUEPRINT PANEL (Section 02 right side)
   ========================================================================== */
.blueprint-panel {
    width: 100%;
    height: 320px;
    background-color: var(--blueprint-bg);
    position: relative;
    margin-bottom: 32px;
    overflow: hidden;
}

.blueprint-panel svg {
    width: 100%;
    height: 100%;
}

.blueprint-annotations {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.annotation {
    display: flex;
    align-items: center;
    gap: 12px;
}

.annotation-marker {
    width: 24px;
    height: 24px;
    border: 1px solid var(--blueprint-blue);
    color: var(--blueprint-blue);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.annotation-text {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    color: var(--dark-text);
}

/* ==========================================================================
   PROCESS STEPS
   ========================================================================== */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.process-step {
    position: relative;
    padding-left: 56px;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: rgba(192, 112, 64, 0.3);
    line-height: 1;
}

.step-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2vw, 22px);
    text-transform: uppercase;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.process-step p {
    font-size: clamp(13px, 0.9vw, 15px);
    color: var(--steel-gray);
    line-height: 1.6;
}

/* ==========================================================================
   CONTACT LINKS
   ========================================================================== */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 12px;
}

.contact-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    padding: 16px 20px;
    border-left: 2px solid var(--rebar-orange);
    transition: background-color 0.2s ease;
}

.contact-link:hover {
    background-color: rgba(192, 112, 64, 0.08);
}

.link-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: var(--rebar-orange);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.link-value {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: clamp(14px, 1.2vw, 18px);
    color: var(--light-text);
    transition: color 0.2s ease;
}

.contact-link:hover .link-value {
    color: var(--rebar-orange);
}

/* Contact status indicator */
.contact-status {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(138, 136, 136, 0.2);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--steel-gray);
    letter-spacing: 0.05em;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #4a9;
    display: inline-block;
    animation: statusBlink 3s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.3; }
}

.status-uptime {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    color: rgba(138, 136, 136, 0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ==========================================================================
   COLOPHON (Section 04 right side)
   ========================================================================== */
.colophon-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.colophon-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(138, 136, 136, 0.15);
}

.colophon-item:last-child {
    border-bottom: none;
}

.colophon-key {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--steel-gray);
}

.colophon-val {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    color: var(--dark-text);
}

/* ==========================================================================
   SECTION FOOTER SPECIFIC
   ========================================================================== */
.section-footer .zone-left {
    background-color: var(--dark-concrete);
}

.section-footer .zone-right {
    background-color: var(--light-concrete);
}

/* ==========================================================================
   SITE FOOTER BAR
   ========================================================================== */
.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: var(--dark-concrete);
    color: var(--steel-gray);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-center {
    color: var(--rebar-orange);
}

/* ==========================================================================
   SELECTION COLOR
   ========================================================================== */
::selection {
    background-color: var(--rebar-orange);
    color: var(--light-text);
}

/* ==========================================================================
   SCROLLBAR (Webkit)
   ========================================================================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark-concrete);
}

::-webkit-scrollbar-thumb {
    background: var(--steel-gray);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rebar-orange);
}

/* ==========================================================================
   RESPONSIVE -- Mobile (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-right {
        display: none;
    }

    .hero-left {
        padding: 60px 32px;
    }

    .hero-divider {
        display: none;
    }

    .hero::before {
        display: none;
    }

    .split-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .zone-divider {
        height: 2px;
        flex-direction: row;
    }

    .divider-line {
        width: 100%;
        height: 100%;
    }

    .divider-marker {
        display: none;
    }

    .zone-content {
        padding: 48px 32px;
    }

    .zone-left .zone-content,
    .zone-right .zone-content {
        margin: 0 auto;
    }

    .structural-labels {
        display: none;
    }

    .site-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 20px 16px;
    }

    .scroll-indicator {
        display: none;
    }

    .slide-left,
    .slide-right {
        transform: translateX(0);
        opacity: 0;
        transition: opacity 0.4s ease-out;
    }

    .slide-left.revealed,
    .slide-right.revealed {
        opacity: 1;
    }

    .process-step {
        padding-left: 40px;
    }

    .blueprint-panel {
        height: 200px;
    }

    .tool-specs {
        flex-direction: column;
        gap: 4px;
    }
}

/* ==========================================================================
   RESPONSIVE -- Tablet (769px - 1024px)
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .zone-content {
        padding: 60px 40px;
    }

    .hero-left {
        padding: 60px 40px;
    }
}
