/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Purple Violet Color System */
    --primary-900: #1A0B2E;
    --primary-800: #2D1B4E;
    --primary-700: #3F2A6B;
    --primary-600: #523A88;
    --primary-500: #6B46C1;
    --primary-400: #8B5CF6;
    --primary-300: #A78BFA;
    --primary-200: #C4B5FD;
    --primary-100: #DDD6FE;
    --primary-50: #F3F0FF;

    --accent-900: #4C1D95;
    --accent-800: #5B21B6;
    --accent-700: #6D28D9;
    --accent-600: #7C3AED;
    --accent-500: #8B5CF6;
    --accent-400: #A78BFA;
    --accent-300: #C4B5FD;
    --accent-200: #DDD6FE;
    --accent-100: #EDE9FE;

    --violet-900: #581C87;
    --violet-800: #6B21A8;
    --violet-700: #7E22CE;
    --violet-600: #9333EA;
    --violet-500: #A855F7;
    --violet-400: #C084FC;
    --violet-300: #D8B4FE;
    --violet-200: #E9D5FF;
    --violet-100: #F3E8FF;

    --success-600: #059669;
    --success-500: #10B981;
    --success-400: #34D399;
    --success-300: #6EE7B7;
    --success-200: #A7F3D0;
    --success-100: #D1FAE5;

    --warning-600: #D97706;
    --warning-500: #F59E0B;
    --warning-400: #FBBF24;

    --error-600: #DC2626;
    --error-500: #EF4444;
    --error-400: #F87171;

    --white: #FFFFFF;
    --black: #000000;
    --dark-bg: #0F0A1A;
    --card-bg: #1A0B2E;

    /* Spacing System (8px base) */
    --space-1: 0.5rem;   /* 8px */
    --space-2: 1rem;     /* 16px */
    --space-3: 1.5rem;   /* 24px */
    --space-4: 2rem;     /* 32px */
    --space-5: 2.5rem;   /* 40px */
    --space-6: 3rem;     /* 48px */
    --space-8: 4rem;     /* 64px */
    --space-10: 5rem;    /* 80px */
    --space-12: 6rem;    /* 96px */
    --space-16: 8rem;    /* 128px */

    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --line-height-body: 1.5;
    --line-height-heading: 1.2;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(139 92 246 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(139 92 246 / 0.15), 0 2px 4px -2px rgb(139 92 246 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(139 92 246 / 0.2), 0 4px 6px -4px rgb(139 92 246 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(139 92 246 / 0.25), 0 8px 10px -6px rgb(139 92 246 / 0.15);
    --shadow-glow: 0 0 20px rgb(139 92 246 / 0.3);

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-body);
    color: var(--primary-100);
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-900) 100%);
    font-size: 1rem;
    font-weight: 400;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: var(--line-height-heading);
    font-weight: 600;
    color: var(--white);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--primary-700);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-500), var(--violet-500));
    border-radius: var(--radius-md);
    position: relative;
    box-shadow: var(--shadow-glow);
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-link {
    text-decoration: none;
    color: var(--primary-200);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-400);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-600), var(--violet-600));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-700), var(--violet-700));
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-300);
    border: 2px solid var(--accent-600);
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent-400);
    color: var(--accent-200);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: var(--space-3) var(--space-6);
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    padding: var(--space-16) var(--space-4) var(--space-12);
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-900) 50%, var(--violet-900) 100%);
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--white);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-400), var(--violet-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--primary-200);
    margin-bottom: var(--space-6);
}

.hero-actions {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.hero-stats {
    display: flex;
    gap: var(--space-6);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--primary-300);
    margin-top: var(--space-1);
}

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

.wallet-mockup {
    width: 300px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-800), var(--card-bg));
    border-radius: var(--space-3);
    padding: var(--space-4);
    box-shadow: var(--shadow-xl);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
    border: 1px solid var(--primary-600);
}

.wallet-mockup:hover {
    transform: rotate(0deg);
    box-shadow: var(--shadow-glow);
}

.wallet-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-900), var(--dark-bg));
    border-radius: var(--space-2);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--primary-700);
}

.screen-content {
    text-align: center;
}

.crypto-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-500), var(--violet-500));
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-4);
    position: relative;
    box-shadow: var(--shadow-glow);
}

.crypto-icon::after {
    content: '₿';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
}

.balance {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-2);
}

.usd-value {
    font-size: 1rem;
    color: var(--success-400);
}

/* Features Section */
.features {
    padding: var(--space-12) var(--space-4);
    background: var(--dark-bg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-10);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    margin-bottom: var(--space-3);
}

.section-description {
    font-size: 1.125rem;
    color: var(--primary-200);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-6);
}

.feature-card {
    background: linear-gradient(135deg, var(--card-bg), var(--primary-800));
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--primary-600);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-500);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    position: relative;
    box-shadow: var(--shadow-md);
}

.security-icon {
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
}

.shield-icon {
    background: linear-gradient(135deg, var(--violet-500), var(--violet-600));
}

.coins-icon {
    background: linear-gradient(135deg, var(--warning-500), var(--warning-600));
}

.mobile-icon {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
}

.backup-icon {
    background: linear-gradient(135deg, var(--error-500), var(--error-600));
}

.support-icon {
    background: linear-gradient(135deg, var(--accent-400), var(--violet-400));
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: var(--white);
    border-radius: var(--radius-sm);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
    color: var(--white);
}

.feature-description {
    color: var(--primary-200);
    line-height: 1.6;
}

/* Security Section */
.security {
    padding: var(--space-12) var(--space-4);
    background: linear-gradient(135deg, var(--primary-900), var(--violet-900));
    position: relative;
}

.security::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.security-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
    position: relative;
    z-index: 1;
}

.security-features {
    margin-top: var(--space-6);
}

.security-feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    padding: var(--space-3);
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--primary-600);
    transition: all 0.3s ease;
}

.security-feature:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--accent-500);
}

.check-icon {
    width: 24px;
    height: 24px;
    background: var(--success-500);
    border-radius: var(--radius-full);
    position: relative;
    flex-shrink: 0;
}

.check-icon::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: bold;
}

.security-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    background: linear-gradient(135deg, var(--card-bg), var(--primary-800));
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glow);
    border: 1px solid var(--primary-600);
}

.badge-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success-500), var(--success-600));
    border-radius: var(--radius-full);
    position: relative;
    box-shadow: var(--shadow-md);
}

.badge-icon::after {
    content: '🛡️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
}

.badge-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
}

.badge-subtitle {
    color: var(--primary-200);
    margin-top: var(--space-1);
}

/* Trust Section */
.trust {
    padding: var(--space-12) var(--space-4);
    background: var(--dark-bg);
    color: var(--white);
}

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

.trust .section-title {
    color: var(--white);
    margin-bottom: var(--space-8);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-8);
}

.trust-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-400), var(--violet-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
}

.trust-label {
    font-size: 1.125rem;
    color: var(--primary-200);
}

/* CTA Section */
.cta {
    padding: var(--space-12) var(--space-4);
    background: linear-gradient(135deg, var(--accent-600), var(--violet-600));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    color: var(--white);
    margin-bottom: var(--space-4);
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: var(--space-6);
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--primary-200);
    padding: var(--space-10) var(--space-4) var(--space-4);
    border-top: 1px solid var(--primary-700);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-10);
}

.footer-brand .logo {
    color: var(--white);
}

.footer-tagline {
    margin-top: var(--space-2);
    color: var(--primary-300);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-6);
}

.footer-title {
    color: var(--white);
    margin-bottom: var(--space-3);
    font-size: 1rem;
}

.footer-link {
    display: block;
    color: var(--primary-300);
    text-decoration: none;
    margin-bottom: var(--space-2);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-400);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: var(--space-6);
    border-top: 1px solid var(--primary-700);
    text-align: center;
    color: var(--primary-400);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content,
    .security-content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: var(--space-12) var(--space-4) var(--space-8);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .wallet-mockup {
        width: 250px;
        height: 400px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .wallet-mockup {
        width: 200px;
        height: 320px;
    }
    
    .feature-card {
        padding: var(--space-4);
    }
    
    .security-badge {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--accent-400);
    outline-offset: 2px;
}

/* Additional glow effects for enhanced dark theme */
.feature-card:hover .feature-icon {
    box-shadow: var(--shadow-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Subtle animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
}

.wallet-mockup {
    animation: float 6s ease-in-out infinite;
}

.wallet-mockup:hover {
    animation-play-state: paused;
}