@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Sora:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #647081;
    --bg-navy: #0a1128; /* Added deep navy brand color */
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.15); /* Increased for 3px effect */
    --primary-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --accent-gradient: linear-gradient(135deg, #7367f0 0%, #ce9ffc 100%);
    --gold-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --text-primary: #ffffff;
    --text-dark: #0f172a; /* New dark text color for white content if needed */
    --text-secondary: #94a3b8;
    --glass-blur: blur(16px);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background: radial-gradient(circle at center, var(--bg-navy) 0%, var(--bg-dark) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Layout Utilities */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

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

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

/* Fluid Typography */
h1 { font-size: clamp(2.2rem, 8vw, 4rem); }
h2 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 4vw, 1.5rem); }

/* Glassmorphism */
.glass {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 3px solid var(--border-color); /* 3px robust border as requested */
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 3px solid var(--border-color); /* 3px white border */
    border-radius: 24px;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    transition: var(--transition);
    height: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.02); /* Sweet shadows */
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(255, 255, 255, 0.05);
}

/* Icons */
.card-icon {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition);
}

.glass-card:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
}

/* Gradient Components */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-modern {
    padding: 1rem 2.2rem;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #000;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.4);
    transform: scale(1.02);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
}

/* Header */
.header-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: rgba(10, 17, 40, 0.85); /* Dark translucent navy: close to body bg but noticeably different */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); 
}

.header-scrolled {
    padding: 0.7rem 0;
    background: rgba(10, 17, 40, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-modern img {
    height: 40px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary); /* White text for visibility on new dark navbar */
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #4facfe; /* Hover accent */
}

.nav-links .btn-primary {
    color: #000; /* Keep button text black */
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary); /* White on dark navbar */
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding-top: clamp(8rem, 20vh, 12rem);
    padding-bottom: 2rem; /* Reduced space as requested */
    position: relative;
    width: 100%;
}

.hero-bg-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(100px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
}

.blob-1 {
    width: 45vw;
    height: 45vw;
    background: #4facfe;
    top: -15%;
    left: -15%;
}

.blob-2 {
    width: 35vw;
    height: 35vw;
    background: #ce9ffc;
    bottom: 0%;
    right: -5%;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 2rem auto 3rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Wallet Grid */
.wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.25rem;
}

.wallet-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
}

.wallet-card img {
    width: 58px;
    height: 58px;
    margin-bottom: 1.5rem;
    border-radius: 14px;
    object-fit: contain;
}

.wallet-card h5 {
    font-size: 0.85rem;
    margin: 0;
    color: inherit;
}

/* Footer */
.footer-modern {
    border-top: 1px solid var(--border-color);
    padding: 6rem 0 3rem;
    margin-top: 6rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-info p {
    color: var(--text-secondary);
    margin-top: 2rem;
    font-size: 0.95rem;
}

.footer-links h4 {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
}

.copyright {
    text-align: center;
    margin-top: 5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 991px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 17, 40, 0.98); /* Matching dark mobile menu */
        backdrop-filter: var(--glass-blur);
        flex-direction: column;
        justify-content: center;
        z-index: 1001;
        gap: 3rem;
    }

    .nav-links.active { display: flex; }
    .nav-links a { font-size: 1.6rem; color: var(--text-primary); }
    .mobile-menu-toggle { display: flex; }

    .mobile-menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .footer-info p { margin-left: auto; margin-right: auto; }
    .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-subtitle + div { flex-direction: column; width: 100%; gap: 1rem; }
    .btn-modern { width: 100%; }
    .wallet-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
