:root {
    --primary: #3B82F6; /* Vibrant Sky Blue from mockup */
    --secondary: #FFD54F; /* Warm Yellow from mockup */
    --accent: #FF6B6B; /* Soft Coral */
    --success: #4CAF50;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --bg-light: #FFFFFF;
    --white: #FFFFFF;
    --font-main: 'Nunito', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 1; /* Forced visible for ESET compatibility */
}

body.loaded {
    opacity: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Decorations */
.background-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
}

/* Header */
header {
    padding: 24px 0;
}

.logo {
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 1.5rem;
    color: #0a3d62; /* Deep Oceanic Blue */
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    top: 3px;
}

.logo-mark {
    height: 40px; /* Adjusted size for the logo image */
    width: auto;
}

.logo-text {
    position: relative;
    top: 3px;
}

.hero {
    padding: 20px 0 80px;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-visual-wide {
    width: 100%;
    margin-bottom: 50px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.08));
}

.wide-illustration {
    width: 100%;
    height: auto;
    border-radius: 30px;
    display: block;
}

.hero-main-content {
    display: flex;
    align-items: center;
    gap: 60px;
    text-align: left;
    width: 100%;
}

.hero-text-side {
    flex: 1.2;
}

.hero-book-side {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 2000px;
}

/* Decorative Outer Frame */
.mockup-frame {
    padding: 30px;
    background: #FFF9F0;
    border: 6px double #D1D9E6;
    border-radius: 40px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
    position: relative;
}

.mockup-wrapper {
    position: relative;
    width: 320px;
    height: 400px;
    transform-style: preserve-3d;
    transform: rotateZ(0deg); /* Reset wrapper rotation to keep frame stable */
}

/* Book Styling */
.book-mockup {
    position: absolute;
    top: 50px;
    left: 25px;
    width: 240px;
    z-index: 1;
    transform: rotateY(-15deg) rotateX(5deg) rotateZ(-6deg);
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.book-mockup img {
    width: 100%;
    height: auto;
    border-radius: 4px 12px 12px 4px;
    box-shadow: -15px 25px 50px rgba(0,0,0,0.15);
}

/* Phone Mockup Styling */
.phone-mockup {
    position: absolute;
    bottom: 10px;
    right: 0px;
    width: 150px;
    height: 300px;
    background: #111;
    border-radius: 20px;
    padding: 6px;
    box-shadow: 30px 40px 80px rgba(0,0,0,0.3);
    z-index: 2;
    transform: translateZ(120px) rotateY(15deg) rotateZ(6deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #f1f5f9; /* Match light background */
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px; /* Add safety margin to prevent edge cropping */
}

.phone-screen img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Ensure full visibility */
    border-radius: 4px;
}

/* Interactive Hover Effect */
.mockup-frame:hover .book-mockup {
    transform: rotateY(-5deg) rotateX(0deg) scale(1.02);
}

.mockup-frame:hover .phone-mockup {
    transform: translateZ(150px) rotateY(0deg) translateY(-10px) translateX(-5px);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    font-weight: 900;
    margin-bottom: 24px;
}

.word-1 { color: #f47b2c; }
.word-2 { color: #74ad69; }
.word-3 { color: #df5867; }
.word-4 { color: #338fd0; }

.lead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.cta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 10px 40px 10px 10px; /* Reduced left padding because of the icon circle */
    border-radius: 100px;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    min-width: 280px;
}

.btn-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15); /* Darker circular area */
}

.btn-svg {
    width: 30px;
    height: 30px;
    color: var(--white);
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.1;
}

.btn-text .small {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.btn-text .large {
    font-size: 1.2rem;
    font-weight: 900;
}

.btn-primary {
    background: #f6813e; /* Specified Orange */
    color: var(--white);
}

.btn-secondary {
    background: #4799d3; /* Specified Blue */
    color: var(--white);
}

.btn-amazon {
    background: linear-gradient(135deg, #232f3e 0%, #37475a 100%);
    color: var(--white);
}

.btn-amazon:hover {
    background: linear-gradient(135deg, #ff9900 0%, #ffad33 100%);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.btn-small {
    padding: 8px 25px 8px 8px;
    min-width: auto;
}

/* Opt-in Section */
.optin-section {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 2px dashed #D1D9E6;
    margin: 0 auto 40px;
    max-width: 700px;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 10;
}

.optin-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.optin-form {
    display: flex;
    gap: 12px;
}

.optin-form input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 100px;
    border: 2px solid #E1E9F0;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.optin-form input:focus {
    border-color: var(--primary);
    background: #fff;
}

.btn-icon-wrapper-small {
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.btn-svg-small {
    width: 18px;
    height: 18px;
    color: var(--white);
}

.optin-privacy {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 12px;
}

.hidden {
    display: none;
}

.success-message {
    text-align: center;
    padding: 10px 0;
}

.success-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.success-message h3 {
    color: var(--success);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.btn .icon {
    font-size: 1.5rem;
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.book-mockup {
    position: relative;
    width: 100%;
    max-width: 400px;
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.5s ease;
}

.book-mockup:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.book-mockup img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
}

/* Bonuses Section */
.bonuses {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

h2 {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.section-lead {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.card-badge {
    margin-top: 20px;
    padding: 8px 16px;
    background: #f1f5f9;
    color: var(--text-light);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.card:hover .card-badge {
    background: var(--primary);
    color: var(--white);
}

/* Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--white);
    padding: 20px;
    border-radius: 32px;
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    background: var(--accent);
    color: var(--white);
}

.optin-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
}

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    .cta-group {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: 40px;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        display: flex;
        justify-content: center;
    }

    .logo {
        justify-content: center;
        width: 100%;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-tagline {
        margin: 0 auto;
    }

    .footer-logo {
        justify-content: center;
        width: 100%;
    }

    .hero-container {
        flex-direction: column !important;
        text-align: center !important;
        padding-top: 20px;
        border: 2px solid red; /* Temporary visual test */
    }

    .hero-main-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-book-side {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    .mockup-wrapper {
        width: 280px; /* Scaled down for mobile */
        height: 340px;
        margin: 0 auto;
        transform: rotateZ(0deg) scale(0.9);
    }

    .book-mockup {
        width: 180px !important;
        top: 20px !important;
        left: 0 !important;
    }

    .phone-mockup {
        width: 110px !important;
        height: 220px !important;
        bottom: 20px !important;
        right: 10px !important;
        transform: translateZ(80px) rotateY(15deg) rotateZ(6deg) !important;
    }

    .bonus-form {
        flex-direction: column;
        gap: 15px;
    }

    .email-input, .submit-button {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        padding: 30px 20px;
        margin: 10% auto;
    }
}
/* Free Backup Section */
.free-backup {
    padding: 80px 0;
    background: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.backup-box {
    background: white;
    padding: 40px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.backup-text {
    flex: 1;
}

.backup-text h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    color: #2d3436;
    margin-bottom: 15px;
}

.backup-text p {
    color: #636e72;
    line-height: 1.6;
}

.backup-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid #e2d1c3;
    color: #a3816a;
    padding: 12px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-outline-white:hover {
    background: #e2d1c3;
    color: white;
}

@media (max-width: 768px) {
    .backup-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .backup-actions {
        width: 100%;
    }
}

/* Main Footer */
.main-footer {
    background: #f8f9fa;
    padding: 80px 0 40px 0;
    color: #2d3436;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 1.5rem;
    color: #0a3d62; /* Deep Oceanic Blue */
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-tagline {
    color: #636e72;
    line-height: 1.6;
    max-width: 400px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.link-group h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2d3436;
}

.link-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-group ul li {
    margin-bottom: 12px;
}

.link-group ul li a {
    color: #636e72;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.link-group ul li a:hover {
    color: #ff7675;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    color: #b2bec3;
    font-size: 0.9rem;
}

.footer-note {
    margin-top: 10px;
    font-style: italic;
    opacity: 0.7;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1e3799;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0984e3;
    transform: translateY(-5px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
