/* ==========================================
   1. IMPORTS & VARIABLES
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Roboto+Condensed:wght@300;400&display=swap');

:root {
    --bright-purple: #A200FF;
    --off-white:     #F8F8F8;
    --light-grey:    #D3D3D3;
    --dark-grey:     #1E1E1E;
    --darker-grey:   #121212;
    --burnt-yellow:  #D4AF37;
    --dark-orange:   #FF8C00;
    --transition:    all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================
   2. BASE RESETS & LAYOUT
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100vw;
    height: 100vh;
    overflow: hidden; /* Static page feel */
    font-family: 'Inter', sans-serif;
    background-color: #2a1f33; 
    color: var(--off-white);
    display: flex;
    flex-direction: column;
}

/* Static Background - Soft Muted Purple Gradient */
.background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: linear-gradient(135deg, #4A3B5C, #1E1525);
}

/* Abstract Decorative Tech Lines */
.tech-line {
    position: absolute;
    z-index: -1;
    opacity: 0.6;
    border-radius: 5px;
}
.line-1 {
    width: 300px; height: 2px;
    background: var(--bright-purple);
    top: 25%; left: -50px;
    transform: rotate(35deg);
    box-shadow: 0 0 10px var(--bright-purple);
}
.line-2 {
    width: 400px; height: 2px;
    background: var(--dark-orange);
    bottom: 20%; right: -100px;
    transform: rotate(-45deg);
    box-shadow: 0 0 10px var(--dark-orange);
}

/* ==========================================
   3. HEADER & FOOTER (Black Bar Styling)
   ========================================== */
header {
    width: 100%;
    height: 90px;
    padding: 0 40px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000000;
    border-bottom: 1px solid rgba(211, 211, 211, 0.05);
    position: relative;
    z-index: 10;
    animation: slideDown 1s ease-out forwards;
}

footer {
    width: 100%;
    padding: 15px 20px;
    text-align: center;
    background: #000000;
    border-top: 1px solid rgba(211, 211, 211, 0.05);
    z-index: 10;
}
footer p {
    font-family: 'Roboto Condensed', sans-serif;
    color: var(--light-grey);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.5px;
}
footer a {
    color: var(--burnt-yellow);
    text-decoration: none;
    transition: var(--transition);
    margin-left: 5px;
}
footer a:hover {
    color: var(--dark-orange);
}

/* ==========================================
   4. TYPOGRAPHY & BUTTONS
   ========================================== */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
    z-index: 10;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 24px; 
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}
.highlight-purple { color: var(--bright-purple); }
.highlight-yellow { color: var(--burnt-yellow); }

p.subtitle {
    font-size: 1.15rem;
    color: var(--light-grey);
    max-width: 750px;
    line-height: 1.6;
    margin-bottom: 40px; 
    font-weight: 300;
}

/* Button Container Grid */
.btn-container {
    display: grid;
    grid-template-columns: repeat(5, auto); 
    gap: 20px; 
    justify-content: center;
}

/* Base Button Styling + Rainbow Rollover */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 14px 28px; 
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--off-white);
    background: rgba(30, 30, 30, 0.7);
    border: 2px solid var(--dark-grey);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    z-index: 1;
    white-space: nowrap; 
    border: none; /* For form buttons */
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--bright-purple), var(--dark-orange));
    z-index: -1;
    transform: translateY(100%);
    transition: var(--transition);
}

.btn:hover {
    color: var(--off-white);
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(162, 0, 255, 0.3);
}

.btn:hover::before {
    transform: translateY(0);
}

/* ==========================================
   5. ICON BADGES (Moved to Main Grid)
   ========================================== */
.badge-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px; /* 50% larger than original 40px */
    height: 60px; 
    padding: 8px;
    background: rgba(30, 30, 30, 0.5); 
    border: 2px solid var(--dark-grey); 
    border-radius: 12px; 
    color: var(--off-white);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.badge svg, .badge img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Fix for MS Store Logo filling its border better */
.ms-store-fix {
    transform: scale(1.3);
}

.badge:hover {
    border-color: var(--bright-purple);
    background: rgba(40, 40, 40, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(162, 0, 255, 0.3);
}

/* ==========================================
   6. ANIMATED GRAPHICS (INDEX PAGE)
   ========================================== */
.graphics-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: -30px; 
    margin-bottom: 35px; 
    height: 180px;
}

.code-editor {
    width: 260px; height: 160px;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: floatEditor 6s ease-in-out infinite;
}

.editor-top {
    height: 24px;
    background: var(--dark-grey);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
}

.window-dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.editor-body { padding: 15px; display: flex; flex-direction: column; gap: 12px; }

.code-line { height: 6px; border-radius: 3px; position: relative; overflow: hidden; }
.code-line::after {
    content: ''; position: absolute; top: 0; left: 0; bottom: 0;
    background: inherit; animation: typing 3s infinite alternate ease-in-out;
}

.code-purple { background: var(--bright-purple); width: 85%; }
.code-yellow { background: var(--burnt-yellow); width: 50%; margin-left: 15px; }
.code-orange { background: var(--dark-orange); width: 65%; margin-left: 30px; }
.code-white  { background: var(--light-grey); width: 40%; margin-left: 15px; }

.mobile-device {
    width: 85px; height: 170px;
    background: var(--darker-grey);
    border: 4px solid var(--light-grey);
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: floatMobile 5s ease-in-out infinite;
}

.mobile-screen { flex: 1; background: var(--dark-grey); display: flex; flex-direction: column; padding: 8px; gap: 8px; }
.app-header { height: 12px; background: var(--bright-purple); border-radius: 3px; width: 100%; }
.app-card { height: 25px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; animation: appSlideIn 4s infinite; }
.app-card.delay { animation-delay: 0.5s; background: rgba(212, 175, 55, 0.3); }

/* ==========================================
   7. PRODUCT PAGE (MEDIA MANAGER)
   ========================================== */
.product-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    max-width: 1200px;
    width: 100%;
    padding: 40px;
}

.product-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: floatEditor 6s ease-in-out infinite;
}

.product-info { flex: 1; text-align: left; }

.product-info h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    text-align: left;
}

.product-tagline {
    font-size: 1.4rem;
    color: var(--burnt-yellow);
    margin-bottom: 30px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light-grey);
    font-size: 1rem;
}

.feature-icon { color: var(--bright-purple); font-weight: bold; }

.purchase-action-box {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--bright-purple);
    padding: 30px;
    border-radius: 0 15px 15px 0;
    backdrop-filter: blur(10px);
}

.price-display {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--off-white);
    margin-bottom: 20px;
}

.price-display span { font-size: 1rem; color: var(--light-grey); }

.paypal-submit {
    width: 100%;
    max-width: 350px;
}

/* ==========================================
   8. KEYFRAME ANIMATIONS
   ========================================== */
@keyframes slideDown {
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes floatEditor {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes floatMobile {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes typing {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes appSlideIn {
    0% { transform: translateX(-120%); opacity: 0; }
    15%, 85% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(120%); opacity: 0; }
}