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

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --border: #e2e8f0;
    --success: #48bb78;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-primary);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Crypto Rates Card */
.crypto-rates-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.live-badge {
    background: linear-gradient(135deg, #48bb78, #38a169);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.rates-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rate-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.rate-item:hover {
    background: #e6f2ff;
    transform: translateX(4px);
}

.rate-item.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.rate-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.rate-icon.usdt {
    background: linear-gradient(135deg, #26a17b, #50af95);
}

.rate-icon.bnb {
    background: linear-gradient(135deg, #f3ba2f, #f0b90b);
}

.rate-icon.sol {
    background: linear-gradient(135deg, #9945ff, #14f195);
}

.rate-info {
    flex: 1;
}

.rate-name {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 15px;
}

.rate-symbol {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.rate-price {
    text-align: right;
}

.price-value {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 2px;
}

.price-change {
    font-size: 12px;
    font-weight: 600;
}

.price-change.positive {
    color: var(--success);
}

.price-change.negative {
    color: #f56565;
}

.rates-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.rates-footer p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card-title {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.card-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.balance-amount {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 8px;
}

.balance-change {
    font-size: 14px;
    font-weight: 600;
}

.balance-change.positive {
    color: var(--success);
}

.card-assets {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.asset-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.asset-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.asset-icon.btc {
    background: linear-gradient(135deg, #f7931a, #ff6b00);
}

.asset-icon.eth {
    background: linear-gradient(135deg, #627eea, #4e5ee4);
}

.asset-info {
    flex: 1;
}

.asset-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.asset-amount {
    font-size: 14px;
    color: var(--text-secondary);
}

.asset-value {
    font-weight: 700;
    font-size: 18px;
}

/* Features Section */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 20px;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.features-grid .feature-card:nth-child(4),
.features-grid .feature-card:nth-child(5) {
    grid-column: span 1;
}

/* Center the last row if it has fewer than 3 items */
@supports (grid-template-columns: subgrid) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    padding: 32px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 16px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

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

/* Savings Plans */
.savings-plans {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.plans-grid.single-plan {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

.plan-example {
    margin-top: 24px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.plan-example p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.plan-example strong {
    color: var(--text-primary);
}

.plan-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.plan-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.plan-header {
    text-align: center;
    margin-bottom: 32px;
}

.plan-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.plan-apy {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-features {
    list-style: none;
    margin-bottom: 32px;
}

.plan-features li {
    padding: 12px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-card button {
    width: 100%;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

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

.cta-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-content .btn-primary {
    background: white;
    color: var(--primary);
}

/* Footer */
.footer {
    padding: 60px 0 32px;
    background: var(--text-primary);
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
}

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

/* Responsive */
@media (max-width: 968px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-links, .nav-actions {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        gap: 16px;
        animation: slideDown 0.3s ease;
    }
    
    .nav-links.active, .nav-actions.active {
        display: flex;
    }
    
    .nav-links {
        border-bottom: 1px solid var(--border);
        padding-bottom: 20px;
    }
    
    .nav-links a {
        padding: 12px 16px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover {
        background: var(--bg-secondary);
    }
    
    .nav-actions {
        padding-top: 0;
    }
    
    .nav-actions button {
        width: 100%;
        justify-content: center;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .mobile-menu-btn {
        display: block;
        font-size: 28px;
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-btn:active {
        transform: scale(0.9);
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 36px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta button {
        width: 100%;
    }
    
    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }
    
    .stat {
        flex: 1;
        min-width: 120px;
    }
    
    .features-grid, .plans-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .section-header h2 {
        font-size: 36px;
    }
    
    .section-header p {
        font-size: 18px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .cta-content h2 {
        font-size: 36px;
    }
    
    .cta-content p {
        font-size: 18px;
    }
    
    .crypto-rates-card {
        padding: 24px;
    }
    
    .rate-item {
        padding: 14px;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
    
    .navbar {
        padding: 0;
    }
    
    .nav-content {
        padding: 12px 0;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-text h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
        line-height: 1.5;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }
    
    .stat {
        width: 100%;
        text-align: center;
        padding: 16px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .stat-value {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .crypto-rates-card {
        padding: 20px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .rate-item {
        padding: 12px;
        gap: 12px;
    }
    
    .rate-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .rate-name {
        font-size: 14px;
    }
    
    .rate-symbol {
        font-size: 11px;
    }
    
    .price-value {
        font-size: 15px;
    }
    
    .price-change {
        font-size: 11px;
    }
    
    .features, .savings-plans {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 32px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .section-header p {
        font-size: 15px;
    }
    
    .feature-card, .plan-card {
        padding: 24px;
    }
    
    .feature-card h3 {
        font-size: 18px;
    }
    
    .feature-card p {
        font-size: 14px;
    }
    
    .plan-header h3 {    font-size: 20px;
    }
    
    .plan-apy {
        font-size: 36px;
    }
    
    .plan-features {
        font-size: 14px;
    }
    
    .plan-features li {
        padding: 10px 0;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 26px;
    }
    
    .cta-content p {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .btn-primary, .btn-secondary, .btn-outline {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .footer {
        padding: 40px 0 24px;
    }
    
    .footer-logo {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }
    
    .hero-text h1 {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
    
    .rate-item {
        padding: 10px;
    }
    
    .crypto-rates-card {
        padding: 16px;
    }
}

/* Smooth Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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