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

/* CSS Variables matching K-Wallet theme */
:root {
    --primary: #FFC107;
    --primary-dark: #FF8F00;
    --success: #0ECB81;
    --destructive: #F6465D;
    --background: #000000;
    --card: #121212;
    --card-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border: #27272a;
    --gradient: linear-gradient(135deg, #FFC107 0%, #FF6B00 100%);
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 0.5px, transparent 0.5px);
    background-size: 8px 8px;
    background-attachment: fixed;
}

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

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

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

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 1002;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 4px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 16px;
    z-index: 1001;
}
.mobile-menu.open { display: flex; flex-direction: column; gap: 12px; }
.mobile-link { color: var(--text-primary); text-decoration: none; font-weight: 600; padding: 12px 8px; border-radius: 8px; }
.mobile-link:hover { background: rgba(255,255,255,0.06); }

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

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

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 14px 28px;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background:
        radial-gradient(1200px circle at 10% 10%, rgba(255, 193, 7, 0.12), transparent 60%),
        radial-gradient(900px circle at 90% 20%, rgba(255, 107, 0, 0.10), transparent 60%),
        radial-gradient(800px circle at 50% 100%, rgba(255, 193, 7, 0.08), transparent 60%);
}
.hero .container {
    position: relative;
    z-index: 1;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px;
    opacity: 0.7;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: -120px;
    left: -120px;
    background: radial-gradient(circle at center, rgba(255, 193, 7, 0.25), rgba(255, 107, 0, 0) 60%);
    filter: blur(40px);
    opacity: 0.6;
    animation: heroGlow 12s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 40px) scale(1.1); }
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 72px;
}

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

.stat {
    text-align: center;
}

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

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
}
.hero-carousel {
    position: relative;
    width: 320px;
    height: 640px;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.hero-slide.active {
    opacity: 1;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    animation: float 6s ease-in-out infinite;
}
.hero-dots {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.hero-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}
.hero-dots .dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 40px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #333;
    border-radius: 3px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--card);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.app-preview {
    padding: 30px 20px;
    height: 100%;
}

.wallet-balance {
    text-align: center;
    margin-bottom: 40px;
}

.balance-header {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.balance-change {
    color: var(--success);
    font-weight: 600;
}

.crypto-list {
    space-y: 16px;
}

.crypto-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 16px;
}

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

.crypto-icon.btc {
    background: #f7931a;
}

.crypto-icon.eth {
    background: #627eea;
}

.crypto-icon.sol {
    background: #9945ff;
}
.crypto-icon.bsc {
    background: #f3ba2f;
}
.crypto-icon.trx {
    background: #ff060a;
}
.crypto-info {
    flex: 1;
}

.crypto-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.crypto-price {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 36px;
}

.feature-card {
    background: var(--card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    background: var(--card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-card:hover::before {
    transform: translateX(0);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

/* Chains Section */
.chains {
    padding: 100px 0;
    background: var(--card);
    position: relative;
    overflow: hidden;
}
.chains .container { position: relative; z-index: 1; }
.chains::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px;
    opacity: 0.6;
    pointer-events: none;
}
.chains::after {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    top: -120px;
    right: -160px;
    background: radial-gradient(circle at center, rgba(255, 193, 7, 0.18), rgba(255, 107, 0, 0) 60%);
    filter: blur(40px);
    opacity: 0.6;
    animation: heroGlow 12s ease-in-out infinite alternate;
    pointer-events: none;
}

.chains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
}

.chain-card {
    background: rgba(255, 255, 255, 0.04);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}
.chain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.chain-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.chain-card:hover::before { transform: translateX(0); }

.chain-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: white;
    background: radial-gradient(closest-side, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border: 1px solid var(--border);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.chain-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}
.chain-card:hover .chain-icon {
    transform: scale(1.06);
    border-color: rgba(255,255,255,0.18);
    box-shadow: inset 0 0 24px rgba(0,0,0,0.2), 0 12px 32px rgba(0,0,0,0.4);
}

.chain-letter {
    font-size: 24px;
    font-weight: 700;
}

.btc-bg { background: #f7931a; }
.eth-bg { background: #627eea; }
.bsc-bg { background: #f3ba2f; }
.polygon-bg { background: #8247e5; }
.arbitrum-bg { background: #28a0f0; }
.avalanche-bg { background: #e84142; }
.solana-bg { background: #9945ff; }
.tron-bg { background: #ff060a; }

.chain-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

/* Download Section */
.download {
    padding: 100px 0;
    background: var(--gradient);
}

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

.download-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.download-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.download-features {
}
.download-feature + .download-feature {
    margin-top: 12px;
}

.download-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 500;
}

.download-feature i {
    width: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.download-actions {
    text-align: center;
}

.download-btn {
    background: white;
    color: var(--background);
    padding: 20px 40px;
    border-radius: 16px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.download-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.download-btn-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.download-icon {
    font-size: 32px;
    color: var(--primary-dark);
}

.download-info {
    text-align: left;
}

.download-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.download-platform {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--background);
}

.download-note {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* About Section */
.about {
    padding: 100px 0;
    position: relative;
    background:
        radial-gradient(1000px circle at 15% 20%, rgba(255, 193, 7, 0.10), transparent 60%),
        radial-gradient(800px circle at 85% 10%, rgba(255, 107, 0, 0.08), transparent 60%),
        radial-gradient(900px circle at 50% 100%, rgba(255, 193, 7, 0.06), transparent 60%);
}
.about .container {
    position: relative;
    z-index: 1;
}
.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px;
    opacity: 0.7;
    pointer-events: none;
}
.about::after {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    bottom: -100px;
    right: -120px;
    background: radial-gradient(circle at center, rgba(255, 193, 7, 0.22), rgba(255, 107, 0, 0) 60%);
    filter: blur(40px);
    opacity: 0.6;
    animation: heroGlow 12s ease-in-out infinite alternate;
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    justify-items: center;
}
.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.about-screens {
    position: relative;
    height: 560px;
}
.screen-card {
    position: absolute;
    width: 240px;
    height: 520px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s ease, box-shadow 0.6s ease, opacity 0.6s ease;
    opacity: 0.95;
    backdrop-filter: blur(6px);
}
.screen-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.screen-1 { left: 0; top: 20px; transform: rotate(-6deg); }
.screen-2 { left: 80px; top: 0; transform: rotate(0deg); z-index: 2; }
.screen-3 { left: 160px; top: 40px; transform: rotate(6deg); }
.about-screens:hover .screen-card { box-shadow: 0 40px 100px rgba(0,0,0,0.6); }
.about-screens:hover .screen-1 { transform: translateY(-6px) rotate(-6deg); }
.about-screens:hover .screen-2 { transform: translateY(-6px) rotate(0deg); }
.about-screens:hover .screen-3 { transform: translateY(-6px) rotate(6deg); }

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.2px;
    position: relative;
    display: inline-block;
}
.about-title::after {
    content: '';
    display: block;
    width: 96px;
    height: 4px;
    background: var(--gradient);
    margin: 16px auto 0;
    border-radius: 999px;
}
.about-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 18px;
}
.about-description:last-child { margin-bottom: 0; }

.about-stats {
}
.about-stat + .about-stat {
    margin-top: 16px;
}

.about-stat {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

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

.stat-info .stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-links {
        display: none;
    }
    .nav-toggle {
        display: inline-flex;
    }

    .brand-text {
        font-size: 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-stats {
        justify-content: center;
        gap: 24px;
    }

    .hero-carousel {
        width: 260px;
        height: 520px;
    }
    .hero-dots {
        bottom: -16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .chains-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    }
    .chain-card { padding: 20px; }
    .chain-icon { width: 52px; height: 52px; }
    .chain-icon img { width: 32px; height: 32px; }

    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .screens-showcase {
        padding: 60px 0 30px;
    }
    .allscreens-image {
        border-radius: 16px;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .download-title {
        font-size: 2rem;
    }

    .about-title {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Scroll animations will be handled by JavaScript */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.screens-showcase {
    padding: 80px 0 40px;
}
.allscreens-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}