/* --- GLOBAL VARIABLES & RESET --- */
:root {
    --gold: #D4AF37;
    --gold-bright: #f5d782;
    --dark-bg: #0b0e13;
}

* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}

body, html {
    margin: 0; 
    padding: 0;
    width: 100%; 
    height: 100%;
    background-color: var(--dark-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: white;
    overflow: hidden;
}

/* --- APP STRUCTURE --- */
.app-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.app-wrapper::-webkit-scrollbar { 
    display: none; 
}

section {
    flex: 0 0 100%;
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

/* --- SALES PAGE COMPONENTS --- */
.sales-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    animation: fadeIn 2s ease-in-out;
}

.sales-page .ui-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 40px 25px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px) + 60px);
}

/* --- HERO SECTION COMPONENTS --- */
.hero-bg {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: url('../landing_page_1.webp') center/cover no-repeat;
    z-index: 1;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.vignette {
    position: absolute;
    inset: 0;
    /* Balanced gradient for readability across all screen widths */
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.6) 0%, 
        rgba(0,0,0,0.2) 40%, 
        rgba(0,0,0,0.85) 100%);
    z-index: 2;
}

.ui-content {
    position: relative; 
    z-index: 10;
    height: 100%; 
    display: flex;
    flex-direction: column; 
    padding: 40px 25px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px) + 60px);
}

/* --- BRANDING & HEADLINES --- */
.logo-top { 
    position: absolute;
    top: 20px;
    left: 25px;
    z-index: 10;
}

.logo-name {
    color: var(--gold-bright); 
    font-size: 20px; 
    font-weight: 700; 
    text-transform: lowercase;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.logo-slogan {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
    opacity: 0.8;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .logo-slogan {
        font-size: 9px;
    }
    
    .ui-content {
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 60px) + 60px);
    }
    
    .footer-area {
        padding-bottom: calc(5px + env(safe-area-inset-bottom, 60px));
    }
    
    .slogan-container {
        margin-bottom: 10px;
    }
}

.main-headline {
    margin-top: 35px;
    font-size: 1.4rem;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.1;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    letter-spacing: 0.08rem;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* --- TRUST BADGES --- */
.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 25px -25px;
    padding: 0 25px;
    width: calc(100% + 50px);
    text-align: center;
    box-sizing: border-box;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
}

.trust-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.trust-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

/* --- SLOGAN FLIPPER SYSTEM --- */
.slogan-container {
    height: 60px; 
    overflow: hidden;
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 190px;
    left: 0;
    right: 0;
}

/* Adjust slogan position for sales pages (hero1, hero2, etc.) */
.sales-page .slogan-container {
    bottom: 200px; /* Higher to avoid fingerprint icon */
}

/* Hero2, Hero3, Hero4, Hero5, Hero6 specific adjustment - higher up due to longer text */
#hero2 .slogan-container,
#hero3 .slogan-container,
#hero4 .slogan-container,
#hero5 .slogan-container,
#hero6 .slogan-container {
    bottom: 210px; /* Additional higher for hero2, hero3, hero4, hero5, hero6 */
}

.slogan-flipper {
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.slogan-item {
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slogan-item .head {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.slogan-item .body {
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    opacity: 0.9;
}

/* --- INTERACTIVE BIOMETRIC BUTTON --- */
.footer-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: calc(0px + env(safe-area-inset-bottom, 0px));
    position: relative;
    z-index: 20;
    margin-bottom: -5px;
    margin-top: auto;
}

.biometric-wrapper {
    width: 85px;
    height: 85px;
    cursor: pointer;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    animation: pulseGlow 3s infinite ease-in-out;
    position: relative;
    z-index: 25;
    margin-bottom: 10px;
}

.biometric-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
}

@keyframes pulseGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)); 
        transform: scale(1); 
    }
    50% { 
        filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.6)); 
        transform: scale(1.05); 
    }
}

.start-label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    margin-top: 0;
    text-align: center;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 8px 20px;
    border-radius: 2px;
    display: inline-block;
    position: relative;
    z-index: 20;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    background: transparent;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.footer-note {
    font-size: 9px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    margin-top: 5px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    position: relative;
    z-index: 20;
}

/* --- CUSTOM ALERT MODAL --- */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    animation: fadeInOverlay 0.3s ease-out forwards;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.alert-modal {
    background: rgba(11, 14, 19, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 35px 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    animation: slideUpModal 0.3s ease-out forwards;
}

@keyframes slideUpModal {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.alert-icon {
    font-size: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.alert-title {
    color: var(--gold-bright);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.alert-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.alert-button {
    background: linear-gradient(135deg, #E2C275, #B8860B);
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 14px 40px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.alert-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.alert-button:active {
    transform: translateY(0);
}

/* --- SALES PAGES --- */
.sales-page {
    position: relative;
}

.sales-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: center/cover no-repeat;
    z-index: 1;
}

/* --- NAVIGATION DOTS --- */
.nav-dots {
    position: fixed;
    bottom: calc(5px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
    margin-bottom: 10px;
}

.dot {
    width: 7px;
    height: 7px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    transition: 0.3s;
    cursor: pointer;
}

.dot.active {
    background: var(--gold);
    width: 20px;
    border-radius: 10px;
}

/* --- MY_PROFILE INSTALL APP SECTION --- */
.my-profile-install-app-section {
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin-top: 20px;
}

.my-profile-install-app-content {
    padding: 10px 0;
}

.my-profile-install-app-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.my-profile-install-app-status-container {
    margin-bottom: 16px;
}

.my-profile-install-app-status {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.my-profile-btn-install-app {
    background: linear-gradient(135deg, #E2C275, #B8860B);
    color: #000;
    border: none;
    padding: 14px 28px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    width: 100%;
}

.my-profile-btn-install-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.my-profile-btn-install-app:active {
    transform: translateY(0);
}

.my-profile-btn-install-app:disabled {
    cursor: not-allowed;
    transform: none;
    opacity: 0.5;
}