/* ============================================
   ALLEGIANCE LOYALTY CLUB - STYLESHEET
   Brand Colors:
   - Primary Purple: #8E24AA
   - Secondary Pink: #D81B60
   - Dark Background: #1A0033
   - Light Background: #F0E6F7
   ============================================ */

:root {
    --primary-purple: #8E24AA;
    --secondary-pink: #D81B60;
    --dark-bg: #1A0033;
    --light-bg: #F0E6F7;
    --white: #FFFFFF;
    --black: #000000;
    --grey-text: #666666;
    --grey-light: #E0E0E0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(142, 36, 170, 0.3);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-purple) 100%);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    height: 44px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-purple) 50%, var(--secondary-pink) 100%);
    padding: 80px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-tagline {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease;
    perspective: 2000px;
}

.phone-mockup-container {
    position: relative;
    transform-style: preserve-3d;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.4), 
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 2px 10px rgba(255, 255, 255, 0.1),
        inset 0 -2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: rotateZ(-45deg) rotateX(35deg) rotateY(35deg);
    transform-style: preserve-3d;
    border: 2px solid rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: #000;
    border-radius: 10px;
    z-index: 10;
}

.phone-mockup::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 42px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Dashboard screen fits 100% in phone */
.screen-dashboard {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/screen-dashboard.png');
    background-size: cover;
    background-position: center;
    border-radius: 30px;
}

/* Floating screens stack on top */
.floating-screens {
    position: absolute;
    top: -20px;
    right: -80px;
    width: 280px;
    height: 560px;
    transform-style: preserve-3d;
    pointer-events: none;
    perspective: 1500px;
    z-index: 10;
}

.screen {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    border: 3px solid rgba(255, 255, 255, 0.9);
}

.screen-goals {
    top: -120px;
    left: 80px;
    transform: rotateZ(-45deg) rotateX(35deg) rotateY(35deg) translateZ(240px);
    background-image: url('assets/screen-goals.png');
    z-index: 13;
    transform-style: preserve-3d;
}

.screen-shopping {
    top: -40px;
    left: 40px;
    transform: rotateZ(-45deg) rotateX(35deg) rotateY(35deg) translateZ(120px);
    background-image: url('assets/screen-shopping.png');
    z-index: 12;
    opacity: 0.95;
    transform-style: preserve-3d;
}

/* .screen-review removed */

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-pink) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px var(--shadow-hover);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-purple);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
    padding: 100px 0;
    background: var(--light-bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--grey-text);
    text-align: center;
    margin-bottom: 4rem;
}

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

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

.feature-icon {
    font-size: 0; /* hide inline spacing */
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 3rem;
    color: var(--primary-purple);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--grey-text);
    line-height: 1.7;
    font-size: 1rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-logo {
    height: 56px;
    width: auto;
    display: block;
    margin: 0 auto 1.25rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--grey-text);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--grey-text);
    font-weight: 500;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-pink) 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-logo {
    height: 36px;
    width: auto;
    display: block;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   PAGE CONTENT (Privacy Policy, Delete Account)
   ============================================ */

.page-content {
    padding: 100px 0;
    background: var(--light-bg);
    min-height: calc(100vh - 200px);
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow);
}

.content-container h1 {
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
    font-weight: 700;
}

.content-container h2 {
    font-size: 1.8rem;
    color: var(--primary-purple);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-container h3 {
    font-size: 1.3rem;
    color: var(--primary-purple);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.content-container p {
    color: var(--grey-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.content-container ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--grey-text);
    line-height: 1.8;
}

.content-container li {
    margin-bottom: 0.5rem;
}

.content-container .last-updated {
    color: var(--grey-text);
    margin-bottom: 2rem;
}

.content-container .highlight-box {
    background: var(--light-bg);
    padding: 1.25rem;
    margin: 2rem 0;
    border: 1px solid rgba(142, 36, 170, 0.14);
}

.content-container .highlight-box p {
    margin-bottom: 0;
}

.content-container .highlight-box ul {
    margin-bottom: 0;
}

.delete-account-steps {
    background: var(--light-bg);
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(142, 36, 170, 0.14);
}

.delete-account-steps ol {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.delete-account-steps li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 1.5rem;
    margin: 2rem 0;
}

.warning-box strong {
    color: #856404;
    display: block;
    margin-bottom: 0.5rem;
}

.warning-box p {
    color: #856404;
    margin-bottom: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--dark-bg);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-tagline {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-visual {
        order: -1;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
        transform: rotateZ(-35deg) rotateX(30deg) rotateY(30deg);
        border-radius: 42px;
        padding: 6px;
    }

    .phone-mockup::before {
        top: 12px;
        width: 65px;
        height: 5px;
    }

    .phone-mockup::after {
        bottom: 6px;
        width: 100px;
        height: 3px;
    }

    .phone-screen {
        border-radius: 36px;
    }

    .floating-screens {
        width: 220px;
        height: 440px;
        top: -15px;
        right: -60px;
        z-index: 10;
    }

    .screen-goals {
        top: -100px;
        left: 60px;
        transform: rotateZ(-35deg) rotateX(30deg) rotateY(30deg) translateZ(160px);
        z-index: 13;
    }

    .screen-shopping {
        top: -32px;
        left: 32px;
        transform: rotateZ(-35deg) rotateX(30deg) rotateY(30deg) translateZ(80px);
        z-index: 12;
    }

    /* .screen-review removed */

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-container {
        padding: 2rem 1.5rem;
    }

    .content-container h1 {
        font-size: 2rem;
    }

    .content-container h2 {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-tagline {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .content-container {
        padding: 1.5rem 1rem;
    }
}

