:root {
    /* 5.2 Color Palette */
    --color-bg: #0A1929;
    /* Deep Blue */
    --color-text: #E4E7EB;
    /* Platinum */
    --color-primary: #D4AF37;
    /* Gold Accent */
    --color-secondary-silver: #B8C5D6;
    --color-secondary-bronze: #CD7F32;
    --color-secondary-slate: #6B7D94;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #E4E7EB 0%, #D4AF37 100%);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F59E0B 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

    /* 5.3 Typography */
    --font-display: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

/* 5.5 Layout */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(10, 25, 41, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.nav-logo span {
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 1rem 4rem;
    text-align: center;
    min-height: 90vh;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: var(--gradient-hero);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-secondary-slate);
    max-width: 800px;
    margin-bottom: 3rem;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s backwards;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    /* Ensure z-index works */
    z-index: 10;
    /* Lift above background pseudo-elements */
}

.btn-primary {
    background: var(--gradient-gold);
    color: #000;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

/* Features Section */
.features {
    padding: 6rem 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--color-text);
}

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

.card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.card-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.card-text {
    color: var(--color-secondary-slate);
    font-size: 1rem;
}

/* Steps Section */
.steps {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.01);
}

.step-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.step-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    margin-right: 2rem;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

/* Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-secondary-slate);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

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

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

/* Appended new styles */
/* ... existing styles ... */

.benefit-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.05em;
}

.benefit-status.locked {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-secondary-slate);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefit-status.unlocked {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    /* Success Green */
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.benefit-card.active {
    border-color: var(--color-primary);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Add hover effect only for unlocked cards */
.benefit-card.active:hover {
    transform: translateY(-5px) scale(1.02);
    cursor: pointer;
}

/* Financial Health Metrics */
.metric-item {
    margin-bottom: 1.5rem;
}

.metric-item:last-child {
    margin-bottom: 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 4px;
    transition: width 1s ease-out;
}

/* Multi-Wallet Switcher Styles */

/* Dropdown */
.wallet-container {
    position: relative;
    display: inline-block;
}

.wallet-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 320px;
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    overflow: hidden;
}

.wallet-dropdown.show {
    display: block;
    animation: fadeInDown 0.2s ease-out;
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--color-secondary-slate);
}

.dropdown-item {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
    border-left: 2px solid transparent;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-item.active {
    background: rgba(212, 175, 55, 0.1);
    border-left-color: var(--color-primary);
}

.dropdown-item-content h4 {
    color: var(--color-text);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.dropdown-item-content p {
    color: var(--color-secondary-slate);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.dropdown-action {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.dropdown-action .btn-link {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal-content {
    background: #0D1F33;
    width: 90%;
    max-width: 450px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-text);
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-secondary-slate);
    font-size: 1.5rem;
    cursor: pointer;
}

.input-group {
    margin-bottom: 1.5rem;
}

.address-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
}

.address-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

/* Alerts / Banners */
.alert-banner {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeInDown 0.3s;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    justify-content: center;
}

.alert-text {
    font-size: 0.9rem;
    color: #E4E7EB;
}

/* Smart Wallet Login Modal */
.login-modal-content {
    background: linear-gradient(145deg, #0D1F33, #050C14);
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.biometric-icon {
    font-size: 4rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.biometric-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #00ff9d;
    box-shadow: 0 0 10px #00ff9d;
    animation: scan 1.5s ease-in-out infinite;
    opacity: 0;
}

.login-status-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.login-sub-text {
    font-size: 0.9rem;
    color: var(--color-secondary-slate);
    margin-bottom: 2rem;
}

.login-btn-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.passkey-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

.passkey-btn:hover {
    transform: scale(1.02);
}

@keyframes scan {
    0% {
        top: 0;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}