:root {
    --bg-color: #050505;
    --text-primary: #fbfbfb;
    --text-secondary: #d4af37;
    /* Gold Tinted Text */
    --accent-primary: #d4af37;
    /* Gold */
    --accent-secondary: #ffdf00;
    /* Bright Gold */
    --accent-glow: rgba(212, 175, 55, 0.4);
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(212, 175, 55, 0.2);
    --font-main: 'Outfit', sans-serif;
    --nav-height: 80px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.1), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 223, 0, 0.05), transparent 25%);
    z-index: -1;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Header & Nav */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.logo {
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
    text-decoration: none;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-primary);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: 0.3s;
}

/* Main Content */
.content-container {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 60px;
    padding-left: 5%;
    padding-right: 5%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

.page-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.page-section.active {
    display: block;
}

/* Home Section */
.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
}

/* Interaction Demo */
.interactive-demo {
    margin: 40px 0;
}

.input-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

input[type="text"] {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 15px 20px;
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
}

input[type="text"]:focus {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-primary), #4f46e5);
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.primary-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Cards Animation */
.cards-container {
    display: none;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cards-container.active {
    display: flex;
    margin: 40px 0;
    min-height: 100px;
    /* Space for cards */
}

.todo-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 16px;
    width: 220px;
    text-align: left;
    backdrop-filter: blur(5px);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: scale(0.8);
}

.todo-card h4 {
    color: var(--accent-secondary);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.todo-card p {
    font-size: 0.95rem;
    color: #fff;
}

/* CTAs */
.cta-group {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-btn {
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-btn.primary {
    background: white;
    color: var(--bg-color);
    border: none;
}

.cta-btn.secondary {
    background: transparent;
    border: 1px solid white;
    color: white;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Legal & Contact Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 12px;
    color: #fff;
    resize: vertical;
}

.submit-btn {
    background: var(--accent-secondary);
    color: var(--bg-color);
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
    color: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .glass-header {
        padding: 0 20px;
        justify-content: space-between;
    }

    .logo-container {
        z-index: 1001;
        /* Ensure logo is always on top */
        transition: transform 0.3s;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: none;
        z-index: 1000;
        padding-top: 60px;
        /* Space for logo */
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    .nav-item {
        font-size: 1.5rem;
        padding: 10px;
        border-bottom: none;
        width: auto;
        opacity: 0;
        transform: translateY(20px);
        transition: 0.3s;
    }

    .nav-menu.open .nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger animation for items */
    .nav-menu.open .nav-item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.open .nav-item:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-menu.open .nav-item:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-menu.open .nav-item:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-menu.open .nav-item:nth-child(5) {
        transition-delay: 0.5s;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    /* Active state for menu button */
    .nav-menu.open~.mobile-menu-btn span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-menu.open~.mobile-menu-btn span:nth-child(2) {
        opacity: 0;
    }

    .nav-menu.open~.mobile-menu-btn span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .input-group {
        flex-direction: column;
    }

    .primary-btn {
        width: 100%;
        padding: 15px;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
    }

    .store-btns {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .store-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .store-icon {
        width: 32px;
        height: 32px;
    }

    .glass-panel {
        padding: 20px;
    }

    .todo-card {
        width: 100%;
        max-width: none;
    }
}

/* Additions for Card Interaction and Reward */
/* ... (CSS content from before) ... */
.todo-card {
    position: relative;
    transition: all 0.3s;
    overflow: hidden;
}

.todo-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-secondary);
}

.todo-card.completed {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.2), rgba(0, 0, 0, 0));
    border-color: #10b981;
}

.todo-card.completed h3,
.todo-card.completed p {
    text-decoration: line-through;
    opacity: 0.6;
}

.check-circle {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    transition: all 0.3s;
}

.todo-card.completed .check-circle {
    background: #10b981;
    border-color: #10b981;
}

.todo-card.completed .check-circle::after {
    content: '✓';
    color: white;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.reward-demo.hidden {
    display: none;
}

.reward-demo {
    margin-top: 60px;
    text-align: center;
    animation: fadeIn 1s ease;
}

.reward-image-container {
    width: 300px;
    height: 400px;
    /* Portrait ratio for "Image" */
    margin: 30px auto;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.reward-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.5);
    transition: backdrop-filter 1s ease;
    z-index: 2;
}

.reward-image-container.revealed .blur-overlay {
    backdrop-filter: blur(0);
    background: transparent;
    pointer-events: none;
}

.claim-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    padding: 15px 30px;
    background: white;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.chk-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--text-secondary);
    font-style: italic;
}

/* Particle Animation */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(109, 40, 217, 0.5);
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* App Store Buttons */
.store-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
}

.store-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content */
    gap: 15px;
    background: rgba(255, 255, 255, 0.08);
    /* Slightly more transparent */
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 16px;
    /* Smoother corners */
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    min-width: 180px;
    /* Use min-width instead of fixed width */
    width: auto;
}

.store-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    /* Gold tint on hover */
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

.store-icon {
    width: 24px;
    /* Slightly smaller for elegance */
    height: 24px;
    fill: var(--text-primary);
    /* Ensure white icon */
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.store-text span:first-child {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.store-text span:last-child {
    font-size: 1.1rem;
    font-weight: 600;
}