:root {
    --bg-color: #030303;
    --text-main: #f0f0f0;
    --text-dim: #888;
    --accent: #3b82f6;
    /* Electric Blue */
    --accent-glow: rgba(59, 130, 246, 0.5);
    --border-color: rgba(255, 255, 255, 0.12);
    --border-active: #fff;
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'Courier New', monospace;
    --grid-line: rgba(255, 255, 255, 0.03);

    /* Spacing & Sizes */
    --container-width: 1300px;
    --section-pad: clamp(5rem, 10vw, 10rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.mono-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0;
}

/* Button Refinement */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    font-weight: 800;
    text-transform: uppercase;
    font-family: var(--font-mono);
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.btn-primary {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-primary:hover {
    color: #fff;
    border-color: var(--accent);
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-secondary {
    border: 1px solid var(--border-color);
    color: #fff;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(59, 130, 246, 0.05);
}

.arrow {
    display: inline-block;
    transition: 0.3s;
    margin-left: 5px;
}

.btn:hover .arrow {
    transform: translate(5px, -5px);
}

/* --- NAVIGATION --- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(3, 3, 3, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: 0.3s;
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.05em;
    user-select: none;
}

.logo .dot {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    transition: 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    color: #fff;
    transition: 0.3s;
}

.nav-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* --- HERO BRUTAL --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    flex: 1.2;
    z-index: 2;
    max-width: 800px;
}

.hero-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    opacity: 0;
    /* JS Animation trigger */
    animation: fadeInDown 1s forwards 0.5s;
}

.massive-text {
    font-size: clamp(2.5rem, 11vw, 7.5rem);
    line-height: 0.9;
    font-weight: 900;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.8s;
    overflow-wrap: break-word;
}

.massive-text .outlined {
    -webkit-text-stroke: 1px #fff;
    color: transparent;
    transition: 0.3s;
}

.massive-text .outlined:hover {
    color: rgba(255, 255, 255, 0.1);
    -webkit-text-stroke-color: var(--accent);
}

.glitch-title {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-family: var(--font-mono);
    color: var(--accent);
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.6s;
    transition: 0.3s;
    display: inline-block;
}

/* NEW BRUTAL HIGHLIGHT EFFECT */
.glitch-title:hover,
.section-title:hover {
    background: var(--accent);
    color: #000 !important;
    padding: 0 10px;
    transform: skewX(-10deg) scale(1.02);
    box-shadow: 0 0 20px var(--accent-glow);
    -webkit-text-fill-color: #000;
}

.subheadline {
    font-family: var(--font-mono);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--text-dim);
    margin-bottom: 3.5rem;
    max-width: 90%;
    opacity: 0;
    animation: fadeInUp 1s forwards 1s;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s forwards 1.2s;
}

.hero-visual {
    flex: 0.8;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.image-frame {
    width: clamp(280px, 30vw, 400px);
    aspect-ratio: 0.8;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: scaleIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 1s;
}

.image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1) brightness(0.9);
    transition: 0.7s;
}

.image-frame:hover .profile-img {
    filter: grayscale(0%) contrast(1.1) brightness(1);
    transform: scale(1.05);
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: scan 4s linear infinite;
    z-index: 10;
    opacity: 0.5;
}

/* --- SECTION HEADERS --- */
.section-header {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.section-number {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1.2rem;
}

.section-title {
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    text-transform: uppercase;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* --- PROBLEM SECTION --- */
.problem {
    padding: var(--section-pad) 0;
}

/* Grid Layout Fix */
.problem-grid-brutal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    border: 1px solid var(--border-color);
}

.problem-item {
    padding: 3rem;
    border-right: 1px solid var(--border-color);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    background: transparent;
}

/* Logic to remove right border on last item if needed, but grid handles it */
.problem-item:last-child {
    border-right: none;
}

.problem-item:hover {
    background: #0a0a0a;
}

/* Neon border effect on hover via pseudo-element to avoid layout shift */
.problem-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.problem-item:hover::before {
    transform: scaleX(1);
}

.problem-item h3 {
    font-family: var(--font-mono);
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.problem-item p {
    font-size: 1.05rem;
    color: var(--text-dim);
}

/* --- LIVE PROJECTS (NEW CAROUSEL) --- */
.projects-live {
    padding: var(--section-pad) 0;
    background: #050505;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    /* Hide scrollbars from section if any */
}

.mobile-swipe-hint {
    display: none;
}

/* Horizontal Scroll Container */
.projects-wrapper {
    display: flex;
    gap: 3rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4rem;
    /* Space for scrollbar or visual balance */
    padding-left: 2rem;
    padding-right: 2rem;
    margin: 0 -2rem;
    /* Bleed out edge */

    /* Hide Scrollbar but keep functionality */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
    cursor: grab;
}

.projects-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.project-frame {
    background: #111;
    border: 1px solid var(--border-color);
    height: 60vh;
    min-height: 400px;
    width: 600px;
    /* Fixed width for carousel feel */
    min-width: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    scroll-snap-align: center;
}

.project-frame:hover {
    border-color: var(--accent);
    transform: scale(0.98);
    /* Slight shrink on hover focus */
    z-index: 10;
}

@media (max-width: 768px) {
    .project-frame {
        width: 85vw;
        min-width: 85vw;
        height: 50vh;
    }
}

.browser-header {
    background: #1a1a1a;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #2a2a2a;
}

.dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.7;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.address-bar {
    flex: 1;
    background: #000;
    color: #555;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 6px 10px;
    border-radius: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.viewport {
    flex: 1;
    position: relative;
    background: #fff;
}

.viewport iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    /* Crucial for scroll UX */
}

.overlay-hover {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.4s ease;
    gap: 1rem;
}

.project-frame:hover .overlay-hover {
    opacity: 1;
}

/* --- CORE VALUE --- */
.core-value {
    padding: var(--section-pad) 0;
}

.value-grid-brutal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    /* Removing gap for border collapse look */
    border: 1px solid var(--border-color);
}

.value-block {
    padding: 4rem;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: 0.3s;
}

.value-block:nth-child(2n) {
    border-right: none;
}

.value-block:nth-last-child(-n+2) {
    border-bottom: none;
}

.value-block:hover {
    background: #080808;
}

.value-block h4 {
    font-size: 1.5rem;
    margin: 1.5rem 0;
    text-transform: uppercase;
    color: #fff;
    font-weight: 800;
}

.value-block .icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

/* --- AUTHORITY TICKER OVERHAUL --- */
/* --- RESULTS MATRIX (CONVERSION DRIVER) --- */
.results-matrix {
    display: flex;
    justify-content: center;
    gap: 4rem;
    background: #000;
    padding: 2rem 0;
    margin: 4rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    flex-wrap: wrap;
}

.matrix-item {
    font-family: var(--font-mono);
    color: var(--text-dim);
    font-size: 1rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.matrix-item strong {
    color: #fff;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
}

@media(max-width: 768px) {
    .results-matrix {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
    }
}

.ticker {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-weight: 900;
    font-family: var(--font-main);
    /* Changed to Main font for massiveness */
    font-size: 2.5rem;
    /* Bigger */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ticker-item {
    margin-right: 4rem;
}

.authority-content {
    text-align: center;
    padding: 10rem 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05), transparent 70%);
}

.authority-content h2 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 1rem;
    color: #fff;
}

.authority-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 2rem auto 0;
    font-family: var(--font-mono);
    border: 1px solid var(--border-color);
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

/* --- PROCESS OVERHAUL --- */
.process {
    padding: var(--section-pad) 0;
    position: relative;
    overflow: hidden;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-top: 8rem;
    position: relative;
}

/* Connecting Line */
.process-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
    transform: translateY(-50%);
}

.p-step {
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    width: 30%;
    position: relative;
    background: #030303;
    z-index: 2;
    transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 250px;
}

.p-step:hover {
    transform: translateY(-15px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Massive Number behind text */
.p-num {
    font-size: 8rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -3rem;
    right: 1rem;
    line-height: 1;
    z-index: -1;
    transition: 0.4s;
    font-family: var(--font-main);
}

.p-step:hover .p-num {
    -webkit-text-stroke-color: var(--accent);
    opacity: 0.2;
    transform: scale(1.1);
}

.p-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: #fff;
    font-weight: 800;
}

.p-content p {
    color: var(--text-dim);
    font-size: 0.95rem;
    font-family: var(--font-mono);
}

/* Connectors (Arrows) - Hide original text arrows, use visual ones if needed or rely on line */
.connector {
    display: none;
    /* We use the line ::before instead for cleaner look */
}

/* Active State Animation (optional simulation) */
.p-step:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    animation: scaleIn 0.3s forwards;
}

/* --- FINAL CTA --- */
.final-cta {
    padding: 12rem 2rem;
    text-align: center;
    background: radial-gradient(circle at center, #0a0a0a 0%, #000 80%);
    position: relative;
    border-top: 1px solid var(--border-color);
}

.massive-cta {
    font-size: clamp(3rem, 11vw, 9rem);
    line-height: 0.9;
    font-weight: 900;
    margin-bottom: 4rem;
    color: #fff;
}

.crypto-text {
    font-family: var(--font-mono);
    color: var(--text-dim);
    margin-top: 3rem;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.btn-whatsapp.giant {
    font-size: 1.3rem;
    padding: 1.5rem 3.5rem;
    background: #25d366;
    color: #000;
    border: none;
    letter-spacing: 0.1em;
}

.btn-whatsapp.giant:hover {
    background: #fff;
    box-shadow: 0 0 30px #25d366;
}

/* --- FOOTER --- */
footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #444;
    position: relative;
    overflow: hidden;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3) 50%);
    background-size: 100% 4px;
    pointer-events: none;
}

/* --- ANIMATIONS --- */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scan {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- RESPONSIVE OPTIMIZATION --- */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        justify-content: flex-start;
        padding-top: 8rem;
    }

    .hero-content {
        align-items: center;
        max-width: 100%;
        margin-bottom: 4rem;
    }

    .hero-header {
        width: 100%;
    }

    .cta-group {
        justify-content: center;
    }

    .process-steps {
        flex-direction: column;
        gap: 3rem;
        align-items: center;
    }

    .p-step {
        width: 100%;
    }

    .connector {
        transform: rotate(90deg);
        margin: 0;
    }

    .value-grid-brutal {
        grid-template-columns: 1fr;
    }

    .value-block {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .project-frame {
        height: 450px;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    /* Simplified mobile nav */
    .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .problem-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 2rem 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 3rem;
    }

    .section-number {
        font-size: 1rem;
        opacity: 0.8;
    }

    .massive-cta {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }

    .p-num {
        font-size: 5rem;
        top: -1.5rem;
        right: 0.5rem;
        opacity: 0.15;
        /* Make it subtler on mobile */
    }

    /* Swipe Hint */
    .mobile-swipe-hint {
        display: block;
        font-family: var(--font-mono);
        color: var(--accent);
        font-size: 0.8rem;
        margin-bottom: 1rem;
        animation: swipeHint 1.5s infinite;
        text-align: right;
    }
}

@keyframes swipeHint {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(5px);
    }
}

/* --- SYSTEM OVERLAYS (BRUTAL) --- */
.noise-overlay-global {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 10000;
    transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1), height 0.3s cubic-bezier(0.19, 1, 0.22, 1), background 0.3s;
}

.custom-cursor.active {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #fff;
    backdrop-filter: blur(2px);
}

.scroll-status {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: var(--font-mono);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    mix-blend-mode: difference;
    /* Ensure visibility */
    color: #fff;
}

.scroll-val {
    font-size: 4rem;
    font-weight: 900;
    line-height: 0.8;
}

.scroll-label {
    font-size: 0.6rem;
    opacity: 0.7;
    margin-bottom: 5px;
}

.scroll-line {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.scroll-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent);
}

@media (hover: none) {
    .custom-cursor {
        display: none;
    }

    body,
    a,
    button {
        cursor: auto !important;
    }
}

/* --- BRUTAL INTRO LOADER --- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    /* Allows click through after animation if needed, but we remove it */
}

/* Curtain Panels */
.curtain-panel {
    position: absolute;
    top: 0;
    width: 50.5%;
    /* Fix overlap line */
    height: 100%;
    background: #000;
    z-index: 10;
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
    /* Faster, more aggressive */
    will-change: transform;
}

.curtain-panel.left {
    left: 0;
    transform-origin: left;
    border-right: 1px solid transparent;
    /* Hidden initially */
    transition: border-color 0.5s ease, transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

.curtain-panel.right {
    right: 0;
    transform-origin: right;
    border-left: 1px solid transparent;
    /* Hidden initially */
    transition: border-color 0.5s ease, transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

/* Line Reveal State */
#preloader.line-visible .curtain-panel.left {
    border-color: #222;
    /* Visible seam */
}

#preloader.line-visible .curtain-panel.right {
    border-color: #222;
}

/* Reveal Animation State */
#preloader.reveal .curtain-panel.left {
    transform: translateX(-100%);
    border-color: transparent;
    /* Hide again on open */
}

#preloader.reveal .curtain-panel.right {
    transform: translateX(100%);
    border-color: transparent;
}

/* Reveal Animation State */
#preloader.reveal .curtain-panel.left {
    transform: translateX(-100%);
}

#preloader.reveal .curtain-panel.right {
    transform: translateX(100%);
}

/* Loader Content */
.loader-content {
    position: relative;
    z-index: 20;
    text-align: center;
    transition: opacity 0.5s ease;
}

#preloader.reveal .loader-content {
    opacity: 0;
    transform: scale(0.9);
    /* Shrink effect */
}

/* Flash Effect */
#preloader::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.1s;
}

#preloader.reveal::after {
    animation: flashBump 0.5s ease-out;
}

@keyframes flashBump {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 0.1;
    }

    /* Subtle flash against the black */
    100% {
        opacity: 0;
    }
}

.loader-text {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: 0.2em;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 1rem;
    position: relative;
    overflow: hidden;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: loadBar 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.loader-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    display: flex;
    justify-content: space-between;
    width: 200px;
    margin: 0 auto;
    opacity: 0.5;
}

@keyframes loadBar {
    0% {
        width: 0%;
    }

    20% {
        width: 40%;
    }

    /* Burst start */
    60% {
        width: 60%;
    }

    /* Stall */
    100% {
        width: 100%;
    }

    /* Finish */
}