/* Landing Page Specific Styles - Full Center & No Scroll (Tapi GA Overblock) */
.landing-page {
    /* Color Palette */
    --fn-primary-color: #3f51b5;
    --fn-primary-dark: #2c387e;
    --fn-primary-light: #7986cb;
    --fn-accent-color: #0ea5e9;
    --fn-accent-glow: rgba(14, 165, 233, 0.3);
    --fn-text-light: #ffffff;
    --fn-text-dark: #1a1a2e;
    
    /* Variable for iOS/Chrome Mobile Address Bar Fix */
    --vh: 1vh; 
}

/* Reset total untuk landing page */
.landing-page,
.landing-page html,
.landing-page body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

.landing-page body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Background Image */
.landing-page .fn-full-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    animation: landing-fadein 1.5s ease-out forwards;
    pointer-events: none;
}

@keyframes landing-fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Overlay */
.landing-page .fn-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Container Utama - Responsive & Scrollable */
.landing-page .fn-landing-container {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 90%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    animation: landing-fadein-up 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

@keyframes landing-fadein-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Styling - Centered */
.landing-page .fn-logo {
    width: clamp(100px, 25vw, 180px);
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
    animation: landing-float 5s infinite ease-in-out;
    transition: transform 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.landing-page .fn-logo:hover {
    transform: scale(1.03);
}

@keyframes landing-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Title - Centered */
.landing-page .fn-title {
    color: var(--fn-text-light);
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

/* Tagline - Centered */
.landing-page .fn-tagline {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(0.9rem, 4vw, 1.2rem);
    margin-bottom: 35px;
    font-family: 'Lora', serif;
    font-weight: 400;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.5;
    max-width: 500px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.landing-page .fn-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--fn-primary-color) 0%, #1e3a5f 100%);
    color: var(--fn-text-light);
    text-decoration: none;
    border-radius: 60px;
    font-size: clamp(0.9rem, 4vw, 1rem);
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.landing-page .fn-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.landing-page .fn-cta-button:hover::before {
    left: 100%;
}

.landing-page .fn-cta-button:hover {
    background: linear-gradient(135deg, var(--fn-primary-dark) 0%, #0f2b4a 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.landing-page .fn-cta-button:active {
    transform: translateY(0) scale(0.98);
}

.landing-page .fn-cta-button i {
    transition: transform 0.3s ease;
}

.landing-page .fn-cta-button:hover i {
    transform: translateX(6px);
}

/* ✅ OPSI 1: Privacy Note Minimalis Premium */
.landing-page .fn-privacy-note {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.3px;
    background: none;
    backdrop-filter: none;
    padding: 0;
    border: none;
    opacity: 0;
    animation: landing-fadein 0.8s ease-out 0.6s forwards;
}

.landing-page .fn-privacy-note i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.65rem;
}

.landing-page .fn-privacy-note span {
    background: none;
    padding: 0;
}

/* Trust Badge */
.landing-page .fn-trust-badge {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: landing-fadein 0.8s ease-out 0.5s forwards;
}

.landing-page .fn-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.landing-page .fn-trust-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.landing-page .fn-trust-item i {
    font-size: 0.9rem;
    color: var(--fn-accent-color);
}

/* Loading Popup */
.landing-page .fn-loading-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 30, 0.96);
    backdrop-filter: blur(16px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-page .fn-loading-popup.active {
    opacity: 1;
    visibility: visible;
}

.landing-page .fn-loading-content {
    text-align: center;
    padding: 35px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.landing-page .fn-spinner {
    width: 55px;
    height: 55px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--fn-accent-color);
    border-right: 3px solid var(--fn-primary-light);
    border-radius: 50%;
    animation: landing-spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes landing-spin {
    to { transform: rotate(360deg); }
}

.landing-page .fn-loading-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--fn-text-light);
    letter-spacing: 0.5px;
}

/* Noscript Fallback Styles */
.landing-page .fn-noscript-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.landing-page .fn-noscript-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
}

.landing-page .fn-noscript-content i {
    font-size: 48px;
    color: #f59e0b;
}

.landing-page .fn-noscript-content a {
    color: #0ea5e9;
    text-decoration: none;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Small Phone */
@media (max-width: 380px) {
    .landing-page .fn-logo { width: 85px; }
    .landing-page .fn-title { font-size: 1.8rem; }
    .landing-page .fn-tagline { font-size: 0.85rem; max-width: 280px; margin-bottom: 25px; }
    .landing-page .fn-trust-badge { margin-top: 25px; gap: 10px; }
    .landing-page .fn-trust-item { font-size: 0.65rem; padding: 4px 10px; }
    .landing-page .fn-privacy-note { font-size: 0.6rem; margin-top: 16px; }
    .landing-page .fn-privacy-note i { font-size: 0.55rem; }
}

/* Standard Phone */
@media (min-width: 376px) and (max-width: 480px) {
    .landing-page .fn-logo { width: 95px; }
    .landing-page .fn-title { font-size: 2rem; }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .landing-page .fn-landing-container { padding: 20px; }
    .landing-page .fn-logo { width: 60px; margin-bottom: 5px; }
    .landing-page .fn-title { font-size: 1.5rem; margin-bottom: 2px; }
    .landing-page .fn-tagline { margin-bottom: 10px; font-size: 0.7rem; }
    .landing-page .fn-trust-badge { margin-top: 15px; }
    .landing-page .fn-privacy-note { margin-top: 12px; }
}

/* Print & Accessibility */
@media (prefers-reduced-motion: reduce) {
    .landing-page *, .landing-page *::before {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}