/* ipjosim.com - Maximalist Pattern Rich Shop */
/* Palette: #fff7ed, #fef3c7, #f97316, #14b8a6, #ec4899, #7c2d12, #292524, #1c1917 */
/* Fonts: Montserrat 800, Inter 400, Roboto 500 */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #fff7ed;
    color: #292524;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   SHARED
   ======================================== */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #292524;
    margin-bottom: 8px;
}

.section-title-light {
    color: #fef3c7;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #7c2d12;
    opacity: 0.7;
}

.section-subtitle-light {
    color: #fef3c7;
    opacity: 0.5;
}

/* Stage Badges */
.stage-badge {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.15em;
    padding: 3px 10px;
    display: inline-block;
}

.badge-entry {
    background: #14b8a6;
    color: #fff7ed;
}

.badge-mid {
    background: #f97316;
    color: #fff7ed;
}

.badge-senior {
    background: #ec4899;
    color: #fff7ed;
}

.badge-orange {
    background: #f97316;
    color: #fff7ed;
}

.badge-teal {
    background: #14b8a6;
    color: #fff7ed;
}

.badge-pink {
    background: #ec4899;
    color: #fff7ed;
}

/* ========================================
   HERO (0-100vh)
   ======================================== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    overflow: hidden;
}

.hero-pattern-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-pattern-triangles {
    background: repeating-linear-gradient(
        60deg,
        transparent,
        transparent 30px,
        rgba(249, 115, 22, 0.06) 30px,
        rgba(249, 115, 22, 0.06) 32px
    );
}

.hero-pattern-dots {
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

.hero-pattern-lines {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 48px,
        rgba(236, 72, 153, 0.04) 48px,
        rgba(236, 72, 153, 0.04) 49px
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
}

.hero-badge-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hero-badge {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.1em;
    padding: 4px 12px;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 4.8rem);
    color: #292524;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.brand-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #7c2d12;
    margin-bottom: 40px;
}

.hero-stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    background: rgba(41, 37, 36, 0.04);
    padding: 16px 24px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hero-stat-num {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #f97316;
}

.hero-stat-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 10px;
    color: #292524;
    opacity: 0.5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: #292524;
    opacity: 0.1;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    display: block;
    width: 16px;
    height: 16px;
    border-right: 2px solid #f97316;
    border-bottom: 2px solid #f97316;
    transform: rotate(45deg);
    animation: bounceArrow 2s ease infinite;
}

@keyframes bounceArrow {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
    50% { transform: rotate(45deg) translateY(8px); opacity: 0.5; }
}

/* ========================================
   CAREERS (100-260vh)
   ======================================== */
.careers {
    padding: 80px 24px;
}

.careers-header {
    text-align: center;
    margin-bottom: 48px;
}

.career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.career-panel {
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(41, 37, 36, 0.08);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.career-panel:hover {
    border-color: #f97316;
    transform: translateY(-4px);
}

.panel-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

/* Different patterns per panel */
.panel-dots .panel-pattern {
    background: radial-gradient(circle, rgba(249, 115, 22, 0.06) 2px, transparent 2px);
    background-size: 16px 16px;
}

.panel-stripes .panel-pattern {
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 8px,
        rgba(20, 184, 166, 0.05) 8px,
        rgba(20, 184, 166, 0.05) 9px
    );
}

.panel-crosses .panel-pattern {
    background:
        linear-gradient(rgba(236, 72, 153, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236, 72, 153, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
}

.panel-triangles .panel-pattern {
    background: repeating-linear-gradient(
        120deg,
        transparent,
        transparent 16px,
        rgba(249, 115, 22, 0.04) 16px,
        rgba(249, 115, 22, 0.04) 17px
    );
}

.panel-content {
    position: relative;
    z-index: 1;
    padding: 24px;
    background: rgba(255, 247, 237, 0.85);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.panel-id {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 10px;
    color: #292524;
    opacity: 0.3;
    letter-spacing: 0.1em;
}

.panel-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #292524;
    margin-bottom: 8px;
}

.panel-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #292524;
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Metric Bars */
.panel-metrics {
    margin-bottom: 16px;
}

.metric-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.metric-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 10px;
    color: #292524;
    opacity: 0.5;
    min-width: 80px;
    letter-spacing: 0.05em;
}

.metric-bar {
    flex: 1;
    height: 6px;
    background: rgba(41, 37, 36, 0.06);
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: #f97316;
    transition: width 0.8s ease;
}

.metric-fill.fill-teal {
    background: #14b8a6;
}

.metric-fill.fill-pink {
    background: #ec4899;
}

.metric-value {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 11px;
    color: #292524;
    min-width: 48px;
    text-align: right;
}

.panel-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 10px;
    color: #7c2d12;
    background: rgba(249, 115, 22, 0.08);
    padding: 3px 8px;
    letter-spacing: 0.05em;
}

/* ========================================
   PATH VISUALIZATION (260-340vh)
   ======================================== */
.path-section {
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
}

.path-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 60px,
        rgba(249, 115, 22, 0.03) 60px,
        rgba(249, 115, 22, 0.03) 61px
    );
    pointer-events: none;
}

.path-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.zigzag-path {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.zigzag-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.zigzag-row-right {
    justify-content: flex-start;
}

.zigzag-row-left {
    justify-content: flex-end;
}

.path-node {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 247, 237, 0.9);
    border: 2px solid rgba(41, 37, 36, 0.08);
    transition: border-color 0.3s ease;
}

.path-node:hover {
    border-color: #f97316;
}

.node-active {
    border-color: #14b8a6;
}

.node-circle {
    width: 44px;
    height: 44px;
    background: #292524;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.node-number {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #fff7ed;
}

.node-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.node-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: #292524;
}

.node-stat {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #f97316;
}

.node-years {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 10px;
    color: #292524;
    opacity: 0.4;
    letter-spacing: 0.1em;
}

.zig-connector {
    width: 40px;
    height: 2px;
    background: rgba(41, 37, 36, 0.12);
    flex-shrink: 0;
}

/* ========================================
   MARKET DATA (340vh+)
   ======================================== */
.market-section {
    padding: 80px 24px;
    background: #1c1917;
    position: relative;
    overflow: hidden;
}

.market-pattern-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.market-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    max-width: 900px;
    margin: 0 auto 48px;
    position: relative;
    z-index: 1;
}

.market-block {
    background: rgba(255, 247, 237, 0.04);
    border: 1px solid rgba(254, 243, 199, 0.08);
    padding: 16px;
    transition: border-color 0.3s ease;
}

.market-block:hover {
    border-color: #f97316;
}

.block-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 10px;
    color: #fef3c7;
    opacity: 0.5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.block-value {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #fef3c7;
    display: block;
    margin-bottom: 8px;
}

.mini-bar {
    height: 4px;
    background: rgba(254, 243, 199, 0.08);
    margin-bottom: 6px;
    overflow: hidden;
}

.mini-fill {
    height: 100%;
    background: #f97316;
    transition: width 0.8s ease;
}

.mini-fill.fill-teal {
    background: #14b8a6;
}

.mini-fill.fill-pink {
    background: #ec4899;
}

.block-trend {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 0.05em;
}

.trend-up {
    color: #14b8a6;
}

.trend-down {
    color: #ec4899;
}

.market-footer {
    text-align: center;
    position: relative;
    z-index: 1;
}

.zigzag-divider {
    width: 60px;
    height: 12px;
    margin: 0 auto 24px;
    background: repeating-linear-gradient(
        -45deg,
        #f97316,
        #f97316 4px,
        transparent 4px,
        transparent 8px
    );
    opacity: 0.4;
}

.market-closing {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #fef3c7;
    margin-bottom: 8px;
}

.market-brand {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #fef3c7;
    opacity: 0.2;
    letter-spacing: 0.1em;
}

/* ========================================
   FADE-IN
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .hero-stats-bar {
        flex-direction: column;
        gap: 16px;
    }

    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }

    .market-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .zigzag-row {
        flex-direction: column;
    }

    .zig-connector {
        width: 2px;
        height: 24px;
    }
}

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

    .panel-content {
        padding: 16px;
    }
}
