/* Reset & Base */
:root {
    /* Core Colors */
    --bg-dark: #000000;
    --text-light: #f4f4f4;
    --gold-accent: #C5A059;
    --gold-dim: #8a703d;

    /* Functional Colors */
    --bg-main: var(--bg-dark);
    --text-main: var(--text-light);
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-surface: rgba(255, 255, 255, 0.03);
    --card-bg: rgba(255, 255, 255, 0.02);
    --section-bg-alt: #000000;

    /* SVG & Effects */
    --ink-color: #C5A059;
    --svg-stroke: #fff;
    --svg-fill-muted: rgba(255, 255, 255, 0.2);

    --font-main: "Garamond", serif;
}

body.light-mode {
    /* Light Mode Overrides */
    --bg-main: #fcfcfc;
    --text-main: #1a1a1a;
    --text-muted: rgba(0, 0, 0, 0.6);

    --gold-accent: #b08d4b;

    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-surface: rgba(0, 0, 0, 0.03);
    --card-bg: rgba(0, 0, 0, 0.02);
    --section-bg-alt: #f0f0f0;

    --svg-stroke: #333;
    --svg-fill-muted: rgba(0, 0, 0, 0.1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-main);
    overflow-x: hidden;
    height: 100vh;
    cursor: default;
    /* Could use a custom cursor later */
}

/* Hero Container */
.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #000000;
}

body.light-mode .hero-container {
    background: radial-gradient(circle at 30% 20%, #f0f0f0 0%, #ffffff 100%);
}

/* Background Elements */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.grain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    z-index: 0;
    display: none;
}

.shape-1 {
    width: 800px;
    height: 800px;
    background: rgba(197, 160, 89, 0.15);
    /* Gold tint */
    top: -20%;
    left: -10%;
    animation: floatShape 25s infinite alternate ease-in-out;
}

.container {
    width: min(90%, 1000px);
    margin-inline: auto;
    position: relative;
    padding: 0 5vw;
}

.shape-2 {
    width: 600px;
    height: 600px;
    background: rgba(80, 80, 100, 0.15);
    /* Cool tint */
    bottom: -10%;
    right: -5%;
    animation: floatShape 30s infinite alternate-reverse ease-in-out;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    top: 40%;
    left: 40%;
    animation: floatShape 20s infinite alternate ease-in-out;
}

body.light-mode .shape-3 {
    background: rgba(0, 0, 0, 0.05);
}

#pixi-digital-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -30px) scale(1.1);
    }
}



/* Content */
.content-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    height: 100%;
    padding: 0 5%;
    position: relative;
    z-index: 10;
}

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

.hero-headline {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    color: var(--text-main);
    margin-bottom: 30px;
    /* Gradient text subtle */
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subline {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 500px;
    line-height: 1.6;
    opacity: 0;
    /* JS */
    border-left: 1px solid var(--gold-accent);
    padding-left: 20px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tag-item {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold-accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 16px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 50px;
    background: rgba(197, 160, 89, 0.05);
    backdrop-filter: blur(5px);
    opacity: 0;
    /* JS */
    transition: transform 0.3s;
}

.tag-item:hover {
    background: rgba(197, 160, 89, 0.15);
    transform: translateY(-2px);
}

/* Pixi Character */
.pixi-character-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.pixi-glow-backdrop {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.4) 0%, transparent 70%);
    filter: blur(60px);
    opacity: 0;
    z-index: 0;
    animation: pulseBackdrop 5s infinite ease-in-out;
    display: none;
}

@keyframes pulseBackdrop {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.9);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

.pixi-hero-img {
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    opacity: 0;
    /* JS */
    transform-origin: center center;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    /* JS */
    z-index: 20;
}

.scroll-text {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--gold-accent), transparent);
    animation: scrollLineAnim 2s infinite ease-in-out;
}

@keyframes scrollLineAnim {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Mobile */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 80px;
    }

    .hero-text-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 40px;
        order: 2;
        /* Text below image on tablet if needed, or keeping it above? keeping above usually better for SEO/hierarchy */
        /* Let's try Image TOP on mobile for visual impact, Text BOTTOM? Or Text Top? 
           Usually Text Top is better for context. 
           Let's stick to Text Top. */
    }

    .hero-subline {
        border-left: none;
        padding-left: 0;
        margin-right: auto;
        margin-left: auto;
    }

    .hero-tags {
        justify-content: center;
    }

    .pixi-character-container {
        height: 50vh;
        order: 1;
        /* Actually, let's put image below on mobile so header is first seen */
        margin-top: -20px;
    }

    .pixi-hero-img {
        max-height: 50vh;
    }

    .nav-links {
        display: none;
        /* Hide nav links on mobile for now, maybe add hamburger later */
    }
}

/* --- Section 2: Process Flow --- */
.process-flow-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* Full screen per section feel */
    background: var(--section-bg-alt);
    /* Slightly lighter than hero for contrast */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 5%;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    z-index: 2;
}

.section-headline {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-main);
}

.accent-text {
    color: var(--gold-accent);
    font-style: italic;
    /* Optional style */
}

/* Process Container */
.process-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    display: flex;
    /* Using flex to hold nodes */
    justify-content: center;
}

/* The Line */
.process-line {
    position: absolute;
    top: 50px;
    /* Aligned with node markers */
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.process-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    /* JS Animate */
    background: var(--gold-accent);
    box-shadow: 0 0 10px var(--gold-accent);
}

.process-pulse {
    position: absolute;
    top: 50%;
    left: 0;
    width: 50px;
    height: 4px;
    /* Slightly thicker than line */
    background: var(--text-main);
    transform: translateY(-50%);
    border-radius: 4px;
    box-shadow: 0 0 20px var(--text-main);
    opacity: 0;
    /* JS Control */
}

/* Nodes Wrapper */
.process-nodes {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 2;
}

.process-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 180px;
    /* Fixed width for alignment */
    opacity: 0.3;
    /* Default dim state */
    transition: opacity 0.5s;
}

.process-node.active {
    opacity: 1;
}

.node-marker {
    width: 20px;
    height: 20px;
    background: var(--bg-main);
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    margin-bottom: 30px;
    /* Space from line */
    margin-top: 40px;
    /* To center marker on the line which is absolute at top:50px. */
    transition: all 0.3s;
    position: relative;
}

.process-node.active .node-marker {
    background: var(--gold-accent);
    border-color: var(--gold-accent);
    box-shadow: 0 0 20px var(--gold-accent);
    transform: scale(1.3);
}

.node-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.node-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Mobile Layout */
@media (max-width: 900px) {
    .process-container {
        flex-direction: row;
        /* Still wrapper */
        justify-content: flex-start;
        /* Align leftish */
        padding-left: 20px;
        /* Indent */
    }

    .process-nodes {
        flex-direction: column;
        align-items: flex-start;
        gap: 50px;
    }

    .process-node {
        flex-direction: row;
        align-items: center;
        text-align: left;
        width: 100%;
        opacity: 0.3;
        /* Reset handled by JS or CSS? Keep dim */
        margin-top: 0;
    }

    .node-marker {
        margin: 0 20px 0 0;
        /* Right margin only */
    }

    .process-line {
        top: 10px;
        /* Start a bit down? No */
        /* Vertical Line logic */
        width: 2px;
        height: 100%;
        /* Full height of container */
        left: 29px;
        /* 20px padding + 9px center of marker approx */
        top: 0;
    }

    .process-line-fill {
        width: 100%;
        height: 0%;
    }

    .process-pulse {
        width: 4px;
        height: 50px;
        left: -1px;
        top: 0;
    }
}

/* --- Section 3: Pixi Digital Subdivisions (Zig-Zag) --- */
.subdivisions-section {
    position: relative;
    width: 100%;
    padding: 100px 5%;
    background: var(--bg-main);
    overflow: hidden;
}

.subdivisions-container-zigzag {
    display: flex;
    flex-direction: column;
    gap: 120px;
    /* Space between rows */
    max-width: 1000px;
    margin: 0 auto;
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5%;
    opacity: 0;
    /* JS Fade in */
    transform: translateY(50px);
    perspective: 1000px;
    /* Enable 3D space */
}

.subdivisions-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-subline {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 15px;
    font-weight: 300;
}

/* Visual Side with Tilt */
.feature-visual {
    width: 50%;
    height: 400px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* 3D Properties */
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.gloss-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, var(--glass-border), transparent 60%);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s;
    mix-blend-mode: overlay;
}

.feature-svg {
    width: 80%;
    height: 80%;
    filter: drop-shadow(0 0 10px rgba(197, 160, 89, 0.2));
    /* Pop out slightly in 3D */
    transform: translateZ(20px);

}

/* Content Side */
.feature-content {
    width: 45%;
}

.feature-icon {
    font-size: 2rem;
    color: var(--gold-accent);
    margin-bottom: 20px;
    display: inline-block;
    padding: 15px;
    background: rgba(197, 160, 89, 0.1);
    border-radius: 12px;
}

.feature-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
    line-height: 1.1;
}

.feature-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.feature-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: var(--text-main);
    color: var(--bg-main);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.feature-cta:hover {
    background: var(--gold-accent);
    transform: translateX(5px);
}

.feature-cta i {
    transition: transform 0.3s;
}

.feature-cta:hover i {
    transform: translateX(5px);
}

/* SVG Specifics */
.svg-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 900px) {
    .subdivisions-container-zigzag {
        gap: 80px;
    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .feature-visual {
        width: 100%;
        height: 300px;
        order: 2;
    }

    .feature-content {
        width: 100%;
        order: 1;
    }

    .feature-icon {
        margin: 0 auto 20px;
    }
}

/* --- Section 4: Why Pixi Different --- */
.different-section {
    position: relative;
    width: 100%;
    padding: 120px 5%;
    background: var(--section-bg-alt);
    overflow: hidden;
}

.diff-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.diff-headline {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-main);
    margin-bottom: 80px;
}

.highlight-underline {
    position: relative;
    color: var(--gold-accent);
    display: inline-block;
}

.highlight-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    /* JS Animate */
    height: 4px;
    background: var(--gold-accent);
    transition: width 0.5s;
    border-radius: 2px;
}

.diff-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.diff-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    text-align: left;
    transition: transform 0.3s, border-color 0.3s;
    opacity: 0;
    transform: translateY(50px);
    /* JS Animate */
}

.diff-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-accent);
}

.card-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--glass-border);
    margin-bottom: 20px;
    font-family: var(--font-main);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
}

.card-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Section 5: CTA --- */
.cta-section {
    position: relative;
    width: 100%;
    padding: 150px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-main);
    text-align: center;
    overflow: hidden;
}

.cta-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.2) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.5;
    z-index: 1;
    animation: pulseGlow 4s infinite alternate;
    display: none;
}

@keyframes pulseGlow {
    from {
        opacity: 0.3;
        transform: scale(0.9);
    }

    to {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.cta-headline {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.05;
    margin-bottom: 30px;
}

.cta-subline {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 60px;
    font-weight: 300;
}

.text-gold {
    color: var(--gold-accent);
    font-weight: 600;
}

.main-cta-btn {
    display: inline-block;
    background: var(--gold-accent);
    color: #000;
    padding: 20px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.main-cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.4);
}

/* End of File */