/* ========================================= */
/* 1. THEME VARIABLES                        */
/* ========================================= */
:root {
    /* DARK MODE (Default) - "Midnight Gold" */
    --bg-main: #0F0F0F;
    --bg-card: #141414;
    --text-primary: #FDFBF7;
    --accent: #D4AF37; 
    --accent-glow: rgba(212, 175, 55, 0.4);
    --text-grey: #A0A0A0;
    --border-color: rgba(212, 175, 55, 0.2);
    --phone-border: #1a1a1a; 
    --whatsapp-bg: #D4AF37;
    --whatsapp-text: #000;
}

[data-theme="light"] {
    /* LIGHT MODE - "Royal Auburn" */
    --bg-main: #FFFBF7;
    --bg-card: #FFFFFF;
    --text-primary: #2C2C2C;
    --accent: #A52A2A; 
    --accent-glow: rgba(165, 42, 42, 0.3);
    --text-grey: #666666;
    --border-color: rgba(165, 42, 42, 0.2);
    --phone-border: #D1D1D1;
    --whatsapp-bg: #A52A2A;
    --whatsapp-text: #FFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; transition: all 0.4s ease; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Lato', sans-serif;
    overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; }

/* ========================================= */
/* 2. NAVIGATION                             */
/* ========================================= */
nav {
    padding: 15px 5%;
    display: flex; justify-content: space-between; align-items: center;
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.3s ease-in-out; 
}
nav.nav-hidden { transform: translateY(-100%); } 

[data-theme="light"] nav { background: rgba(255, 251, 247, 0.95); }

.logo { 
    font-size: 1.2rem; font-weight: 700; color: var(--accent); 
    display: flex; align-items: center; gap: 8px; letter-spacing: 1px; 
    font-family: 'Cinzel', serif; 
}

.nav-actions { display: flex; gap: 12px; align-items: center; }

.theme-toggle {
    cursor: pointer; font-size: 1rem; color: var(--accent);
    padding: 8px; border-radius: 50%; border: 1px solid var(--border-color);
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
}

/* ========================================= */
/* 3. HERO SECTION                           */
/* ========================================= */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 100px 5% 50px;
    position: relative;
}

.hero-content { flex: 1; max-width: 600px; z-index: 2; }
.badge-text { color: var(--accent); letter-spacing: 2px; text-transform: uppercase; font-size: 0.75rem; font-weight: 700; display: block; margin-bottom: 10px; }

.hero h1 {
    font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px;
    color: var(--text-primary);
}
.hero h1 span { color: var(--accent); }

.hero p { font-size: 1.1rem; color: var(--text-grey); margin-bottom: 30px; line-height: 1.6; max-width: 90%; }

.btn {
    padding: 12px 30px; border-radius: 50px; font-weight: 700; cursor: pointer;
    display: inline-block; transition: 0.3s; letter-spacing: 0.5px;
    text-transform: uppercase; font-size: 0.8rem;
}
.btn-primary {
    background: var(--accent); color: var(--whatsapp-text); border: 1px solid var(--accent);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 25px var(--accent-glow); }

/* --- 3D PHONE --- */
.phone-container {
    flex: 1; display: flex; justify-content: center;
    perspective: 1000px; z-index: 2; height: 600px;
    align-items: center;
    cursor: crosshair; 
}

.phone-mockup {
    width: 280px; height: 580px;
    background: #000; border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 0 0 2px rgba(255,255,255,0.1);
    border: 8px solid var(--phone-border);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    animation: float 6s ease-in-out infinite;
}

.notch {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 120px; height: 25px; background: var(--phone-border);
    border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; z-index: 3;
}

.screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; position: relative; }
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }

.screen-overlay {
    position: absolute; bottom: 0; width: 100%; height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
}

/* ========================================= */
/* 4. PRICING CARDS                          */
/* ========================================= */
.section { padding: 80px 5%; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; color: var(--accent); margin-bottom: 10px; }
.section-title p { color: var(--text-grey); font-size: 0.95rem; }

.products-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; max-width: 1200px; margin: 0 auto;
}

.product-card {
    background: var(--bg-card); 
    border: 1px solid var(--border-color);
    border-radius: 16px; 
    padding: 30px 25px;
    transition: all 0.4s ease;
    position: relative;
    display: flex; flex-direction: column;
}
.product-card:hover { 
    transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 0 30px var(--accent-glow);
}

.card-icon { font-size: 2rem; color: var(--accent); margin-bottom: 20px; text-align: center; }

/* Typography Differentiators */
.title-shagun { font-family: 'Montserrat', sans-serif; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.title-hub { font-family: 'Playfair Display', serif; font-weight: 700; font-style: italic; }
.title-royal { font-family: 'Cinzel', serif; font-weight: 700; border-bottom: 1px solid var(--accent); display: inline-block; padding-bottom: 5px;}

.card-title { font-size: 1.4rem; text-align: center; margin-bottom: 10px; color: var(--text-primary); }
.card-price { font-size: 2.2rem; font-weight: 700; color: var(--accent); text-align: center; font-family: 'Lato', sans-serif; margin-bottom: 25px; }

.feature-list { list-style: none; margin-bottom: 30px; flex-grow: 1; }
.feature-list li {
    margin-bottom: 12px; color: var(--text-grey); font-size: 0.9rem;
    display: flex; align-items: center; gap: 10px;
}
.feature-list li i { color: var(--accent); font-size: 0.8rem; }

.card-btn {
    display: block; width: 100%; padding: 12px; text-align: center;
    border: 1px solid var(--accent); color: var(--accent);
    border-radius: 8px; font-weight: 700; text-transform: uppercase; font-size: 0.85rem;
}
.card-btn:hover { background: var(--accent); color: var(--whatsapp-text); }
.demo-link {
    text-align: center; display: block; margin-top: 15px; 
    font-size: 0.8rem; color: var(--text-grey); text-decoration: underline; cursor: pointer;
}

/* ========================================= */
/* 5. FOOTER & CONTACT                       */
/* ========================================= */
.contact-section {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 60px 5% 30px;
}
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px; max-width: 1200px; margin: 0 auto;
}
.footer-col h4 { font-size: 1.1rem; color: var(--accent); margin-bottom: 20px; letter-spacing: 1px; text-transform: uppercase;}
.footer-col p { color: var(--text-grey); margin-bottom: 15px; line-height: 1.6; font-size: 0.9rem; }
.footer-col i { color: var(--accent); margin-right: 10px; }

.copyright {
    text-align: center; margin-top: 50px; padding-top: 20px;
    border-top: 1px solid var(--border-color); color: var(--text-grey); font-size: 0.8rem;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    background: var(--whatsapp-bg); color: var(--whatsapp-text);
    width: 60px; height: 60px; border-radius: 50%; font-size: 2rem;
    display: flex; align-items: center; justify-content: center; z-index: 100;
    box-shadow: 0 5px 15px var(--accent-glow);
    transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.popular-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--whatsapp-text); padding: 4px 15px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }

/* Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ========================================= */
/* 6. MOBILE OPTIMIZATION                    */
/* ========================================= */
@media (max-width: 768px) {
    nav { padding: 12px 5%; }
    .logo { font-size: 1.1rem; }
    .btn { padding: 8px 16px; font-size: 0.75rem; }
    
    .hero { flex-direction: column; text-align: center; padding-top: 100px; padding-bottom: 40px;}
    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1rem; margin-bottom: 25px; text-align: right;}
    
    .phone-mockup { width: 240px; height: 480px; margin-top: 40px; border-width: 6px; }
    
    .section { padding: 60px 5%; }
    .section-title h2 { font-size: 2rem; }
    
    .whatsapp-float { width: 50px; height: 50px; font-size: 1.6rem; bottom: 20px; right: 20px; }
    .footer-grid { gap: 30px; }
}

/* ========================================= */
/* 7. LEGAL MODAL POPUP                      */
/* ========================================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px);
    z-index: 2000; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: 0.3s ease;
    padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: var(--bg-card); color: var(--text-primary);
    width: 100%; max-width: 600px; max-height: 80vh;
    border: 1px solid var(--border-color); border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
    transform: translateY(20px); transition: 0.3s ease;
}
.modal-overlay.active .modal-content { transform: translateY(0); }

.modal-header {
    padding: 20px; border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { font-family: 'Playfair Display', serif; color: var(--accent); margin: 0; }

.close-modal-btn {
    background: transparent; border: none; color: var(--text-grey);
    font-size: 2rem; cursor: pointer; line-height: 1;
}
.close-modal-btn:hover { color: var(--accent); }

.modal-body {
    padding: 25px; overflow-y: auto; font-size: 0.95rem; line-height: 1.6;
    color: var(--text-primary);
}

.plan-disclaimer {
    font-size: 0.75rem;
    color: var(--text-grey);
    text-align: center;
    margin-top: -20px;
    margin-bottom: 20px;
    font-style: italic;
    min-height: 20px;
}