body {
    background-color: #F9FAFB;
    color: #111;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

::selection {
    background: #FF6600;
    color: #fff;
}

::-moz-selection {
    background: #FF6600;
    color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0A0A0C;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
    border: 3px solid #0A0A0C;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF6600;
}

/* Garage Door Loader */
#garage-loader {
    position: fixed;
    inset: 0;
    background: #111;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.door-panel {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #222 0%, #333 10%, #222 20%, #333 30%, #222 40%, #333 50%, #222 60%, #333 70%, #222 80%, #333 90%, #222 100%);
    background-size: 100% 40px;
    border-bottom: 4px solid #000;
    position: relative;
}

.door-handle {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 10px;
    background: #444;
    border-radius: 5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 3D Elements */
.scene {
    perspective: 800px;
}

.cube {
    width: 60px;
    height: 60px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 10s infinite linear;
}

.cube div {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 102, 0, 0.1);
    border: 2px solid #FF6600;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

.front {
    transform: translateZ(30px);
}

.back {
    transform: rotateY(180deg) translateZ(30px);
}

.right {
    transform: rotateY(90deg) translateZ(30px);
}

.left {
    transform: rotateY(-90deg) translateZ(30px);
}

.top {
    transform: rotateX(90deg) translateZ(30px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(30px);
}

@keyframes rotate {
    0% {
        transform: rotateX(0) rotateY(0);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* Scramble Chars */
.char.resolved {
    color: #FF6600;
}

.char.scrambling {
    color: #5a5a5e;
}

/* Curtain Reveal */
.curtain-section {
    position: relative;
    height: 250vh;
}

.curtain-sticky {
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0A0A0A;
}

.curtain-left,
.curtain-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50.5%;
    background: #F9FAFB;
    z-index: 2;
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.curtain-left {
    left: 0;
    justify-content: flex-end;
    padding-right: 40px;
    border-right-width: 2px;
}

.curtain-right {
    right: 0;
    justify-content: flex-start;
    padding-left: 40px;
    border-left-width: 2px;
}

.curtain-left h2,
.curtain-right h2 {
    font-size: clamp(24px, 10vw, 150px);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #111;
    line-height: 0.9;
}

@media (max-width: 768px) {
    .curtain-left {
        padding-right: 5vw;
    }
    .curtain-right {
        padding-left: 5vw;
    }

    .curtain-left h2,
    .curtain-right h2 {
        font-size: 7.5vw;
        white-space: nowrap;
    }
    
    .curtain-content h3 {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
    }
}

.curtain-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

/* Accordion Slider */
.accordion {
    display: flex;
    gap: 12px;
    height: 65vh;
    min-height: 500px;
    max-height: 700px;
}

.accordion-panel {
    flex: 1;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-panel:hover,
.accordion-panel.active {
    flex: 5;
}

.panel-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background-position: center !important;
    background-size: cover !important;
}

.panel-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.accordion-panel:hover .panel-bg,
.accordion-panel.active .panel-bg {
    transform: scale(1.05);
}

.panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 11, 0.9) 0%, rgba(10, 10, 11, 0.2) 40%, transparent 60%);
    transition: opacity 0.3s;
}

.panel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 2;
}

.panel-num {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FF6600;
    margin-bottom: 8px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.panel-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    position: absolute;
    bottom: 40px;
    left: 20px;
    transition: opacity 0.3s;
    color: rgba(255, 255, 255, 0.85);
}

.accordion-panel:hover .panel-title,
.accordion-panel.active .panel-title {
    opacity: 0;
}

.panel-h3 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.panel-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 40ch;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.accordion-panel:hover .panel-num,
.accordion-panel:hover .panel-h3,
.accordion-panel:hover .panel-desc,
.accordion-panel.active .panel-num,
.accordion-panel.active .panel-h3,
.accordion-panel.active .panel-desc {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Section Redesign */
.contact-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 3rem;
    padding: 3rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 1.5rem;
    border-radius: 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #B49B89;
    color: white;
}

.contact-btn:hover {
    background: #FF6600;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 102, 0, 0.2);
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #B49B89;
    margin-bottom: 0.5rem;
}

.contact-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 2rem;
}

footer {
    background: #0A0A0C;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #FF6600;
}

.footer-spacer {
    color: #FF6600;
    font-weight: 300;
    opacity: 0.5;
}

/* Manifest Pricing System */
.manifest-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.manifest-card {
    background: #0D0D0F;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    padding: 2.5rem;
    overflow: hidden;
    border-radius: 4px;
    border-left: 4px solid #FF6600;
}

.manifest-card::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    bottom: 0;
    width: 20px;
    background-image: radial-gradient(circle, #F9FAFB 5px, transparent 6px);
    background-size: 20px 20px;
    background-repeat: repeat-y;
    z-index: 5;
}

.stamp-area {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    pointer-events: none;
    z-index: 1; /* Place slightly behind text if necessary, or just centered */
    display: flex;
    align-items: center;
    justify-content: center;
}

.manifest-stamp {
    border: 4px solid #FF3300;
    color: #FF3300;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 20px;
    padding: 10px 20px;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    transform: rotate(-15deg) scale(3);
    opacity: 0;
    display: inline-block;
    box-shadow: 0 0 0 4px rgba(255, 51, 0, 0.1);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .manifest-stamp {
        font-size: 14px;
        padding: 6px 12px;
        border-width: 2px;
    }
    .stamp-area {
        width: 100px;
        height: 100px;
    }
}

.barcode-strip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: -1px;
}

.manifest-data {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
}

.manifest-val {
    color: #FF6600;
    font-weight: 700;
    font-size: 14px;
}

.btn-neon {
    background: #FF6600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.4);
}

.btn-neon:hover {
    box-shadow: 0 0 25px rgba(255, 102, 0, 0.7);
    transform: translateY(-2px);
}

/* Blueprint Grid System */
#blueprint-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 102, 0, 0.1) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 102, 0, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0;
}

.dim-line {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 102, 0, 0.4);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    pointer-events: none;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.dim-line::before,
.dim-line::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: rgba(255, 102, 0, 0.2);
}

.dim-v {
    writing-mode: vertical-rl;
    flex-direction: column;
}

.dim-v::before,
.dim-v::after {
    width: 1px;
    height: auto;
}

.tech-coord {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}

@media (max-width: 768px) {
    .accordion {
        flex-direction: column;
        height: auto;
        min-height: auto;
        max-height: none;
    }

    .accordion-panel {
        height: 80px;
        flex: none !important;
    }

    .accordion-panel:hover,
    .accordion-panel.active {
        height: 350px;
        flex: none !important;
    }

    .panel-title {
        writing-mode: horizontal-tb;
        position: relative;
        bottom: auto;
        left: auto;
        padding: 28px 32px;
    }

    /* Contact Section Mobile */
    #contact h2 {
        font-size: 2.5rem;
    }

    #contact .grid-cols-3 {
        grid-template-columns: 1fr !important;
    }
    
    #contact .contact-btn {
        width: 100%;
        padding: 1.25rem;
    }
}
