:root {
    /* Color Palette */
    --void-black: #050505;
    --glass-onyx: #111111;
    --theka-red: #EE2737;
    --pure-white: #FFFFFF;
    --steel-grey: #888888;
    --neon-glitch: #FF3344;
    
    /* Spacing */
    --section-spacing: 15vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--void-black);
    color: var(--pure-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, .brand-font {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    line-height: 0.9;
}

/* Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

.text-stroke {
    -webkit-text-stroke: 2px var(--pure-white);
    color: transparent;
}

.highlight {
    color: var(--theka-red);
}

/* --- Section 1: Hero --- */
.hero-section {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

.hero-bg-glow {
    position: absolute;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(238, 39, 55, 0.15) 0%, rgba(5, 5, 5, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-text-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5vw;
    z-index: 1;
    pointer-events: none;
}

.big-text {
    font-size: 10vw;
    font-weight: 700;
    opacity: 0; /* GSAP will handle opacity */
}

/* Front Text Overlay (Stroke) */
.hero-text-front {
    z-index: 3; /* Above phone (which is 2) */
    pointer-events: none;
}

.big-text-stroke {
    color: transparent;
    -webkit-text-stroke: 2px var(--pure-white); /* Or slightly transparent: rgba(255,255,255,0.5) */
}

.hero-phone-container {
    position: relative;
    z-index: 2;
    height: 80vh;
    transform: translateY(100%); /* Start off screen */
}

.hero-phone {
    height: 100%;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.8));
}

/* --- Section 2: Feature Reel (Horizontal Pin) --- */
.reel-section {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--glass-onyx);
}

.reel-track {
    display: flex;
    gap: 5vw;
    padding-left: 10vw;
    width: fit-content;
}

.reel-card {
    width: 30vw; /* Adjust based on image aspect ratio usually */
    height: 70vh;
    flex-shrink: 0;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.reel-card:hover {
    transform: scale(1);
    border-color: var(--theka-red);
}

.reel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, black, transparent);
}

.reel-title {
    font-size: 2rem;
    color: var(--pure-white);
}

/* --- Section 3: The Engine (Stacking Cards) --- */
.engine-section {
    padding: var(--section-spacing) 10vw;
    min-height: 200vh; /* Allow scroll space */
    position: relative;
}

.engine-header {
    text-align: center;
    margin-bottom: 10vh;
}

.engine-header h2 {
    font-size: 5rem;
    margin-bottom: 20px;
}

.cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.stack-card {
    width: 60vw;
    height: 40vh;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    margin-bottom: 5vh; /* Initial gap */
    position: sticky;
    top: 30vh; /* Stacking trigger point */
    transform-origin: center top;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.stack-icon {
    font-size: 5rem;
    color: var(--theka-red);
}

.stack-content {
    text-align: right;
    max-width: 50%;
}

.stack-content h3 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stack-content p {
    font-size: 1.2rem;
    color: var(--steel-grey);
}

/* --- Section 4: Footer --- */
/* Footer CTA Section (Download) */
.footer-cta-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--void-black);
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.download-text {
    font-family: 'Oswald', sans-serif;
    font-size: 15vw;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.1);
    -webkit-text-stroke: 2px transparent;
    background: linear-gradient(to top, var(--theka-red) 50%, rgba(255, 255, 255, 0.1) 50%);
    background-size: 100% 200%;
    background-position: 100% 100%; /* Start empty */
    -webkit-background-clip: text;
    background-clip: text;
    transition: background-position 0.1s linear;
    margin: 0;
    line-height: 1;
}

.cta-buttons {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    z-index: 10;
}

.btn-store {
    padding: 15px 30px;
    background: var(--pure-white);
    color: var(--void-black);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-store:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.btn-store.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Professional Footer */
.app-footer {
    background-color: #080808; /* Slightly lighter than void */
    padding: 80px 5% 40px;
    color: var(--steel-grey);
    font-family: 'Inter', sans-serif;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 60px;
}

.footer-col h4 {
    color: var(--pure-white);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--steel-grey);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--theka-red);
}

.footer-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: var(--pure-white);
    font-weight: 700;
    margin-bottom: 20px;
}

.logo-red {
    color: var(--theka-red);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pure-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--theka-red);
    transform: translateY(-3px);
}

.footer-bottom-bar {
    text-align: center;
    padding-top: 40px;
    font-size: 0.8rem;
    opacity: 0.6;
}

.sub-footer {
    margin-top: 10px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.5;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
        text-align: center;
    }
    .footer-desc {
        margin: 0 auto 30px;
    }
    .social-links {
        justify-content: center;
    }
    .download-text {
        font-size: 20vw;
    }
}

/* Loader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--void-black);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-pulse {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--theka-red);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(238, 39, 55, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 30px rgba(238, 39, 55, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(238, 39, 55, 0); }
}
