/* ===== CSS Variables & Design System ===== */
:root {
    /* Brand Colors */
    --primary: #00D9FF;
    --primary-dark: #00a3bf;
    --primary-glow: rgba(0, 217, 255, 0.3);
    
    /* Dark Theme */
    --bg-dark: #0a0a0f;
    --bg-secondary: #0F1419;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(26, 26, 46, 0.6);
    --bg-glass: rgba(15, 20, 25, 0.8);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00D9FF 0%, #00ff88 100%);
    --gradient-bg: radial-gradient(ellipse at top, #1a1a2e 0%, #0a0a0f 100%);
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(0, 217, 255, 0.3);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(0, 217, 255, 0.2);
    
    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50%;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Utility Classes ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

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

.accent {
    color: var(--primary);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

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

.btn-nav {
    background: var(--primary);
    color: var(--bg-dark) !important;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
}

.mobile-menu a {
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu.active {
    display: flex;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(0, 217, 255, 0.1);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    opacity: 0.15;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #00ff88;
    bottom: -100px;
    left: -100px;
    opacity: 0.1;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #8247E5;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.08;
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    flex: 1;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

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

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Visual */
.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    display: none;
}

@media (min-width: 1024px) {
    .hero {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
    }
    
    .hero-visual {
        display: block;
        position: relative;
        right: auto;
        top: auto;
        transform: none;
    }
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0F1419 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,0.1);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: var(--bg-dark);
    border-radius: 12px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    border-radius: 32px;
    overflow: hidden;
}

.wallet-ui {
    padding: 48px 20px 20px;
    height: 100%;
}

.wallet-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}

.wallet-logo {
    width: 28px;
    height: 28px;
}

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

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

.balance-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.balance-amount {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.balance-change {
    font-size: 0.875rem;
    font-weight: 500;
}

.balance-change.positive {
    color: #00ff88;
}

.wallet-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.action-btn svg {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    padding: 10px;
}

.action-btn span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.wallet-tokens {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.token-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-tertiary);
    padding: 12px;
    border-radius: var(--radius-md);
}

.token-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
}

.token-icon.btc { background: #F7931A; }
.token-icon.eth { background: #627EEA; }
.token-icon.sol { background: linear-gradient(135deg, #9945FF, #14F195); }

.token-info {
    flex: 1;
}

.token-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
}

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

.token-value {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    animation: float 6s ease-in-out infinite;
}

.card-icon {
    width: 24px;
    height: 24px;
}

.card-1 {
    top: 20%;
    left: -40px;
    animation-delay: -1s;
}

.card-2 {
    bottom: 25%;
    right: -30px;
    animation-delay: -3s;
}

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

/* ===== Section Styles ===== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

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

/* ===== Features Section ===== */
.features {
    padding: var(--section-padding) 0;
    background: var(--gradient-bg);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

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

.feature-card.featured {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
    border-color: var(--primary);
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

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

.feature-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-badge.soon {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* ===== Chains Section ===== */
.chains {
    padding: var(--section-padding) 0;
    background: var(--bg-dark);
}

.chains-showcase {
    text-align: center;
}

.chain-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.chain-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px 32px;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    min-width: 140px;
}

.chain-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.chain-icon {
    width: 48px;
    height: 48px;
}

.chain-icon svg {
    width: 100%;
    height: 100%;
}

.chain-card span {
    font-size: 0.95rem;
    font-weight: 500;
}

.chains-more {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-secondary);
}

.chains-more span:first-child {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chains-coming {
    font-size: 0.875rem;
    color: var(--primary);
}

/* ===== dApp Section ===== */
.dapp-section {
    padding: var(--section-padding) 0;
    background: var(--gradient-bg);
}

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

@media (min-width: 1024px) {
    .dapp-content {
        grid-template-columns: 1fr 1fr;
    }
}

.dapp-text .section-tag,
.dapp-text .section-title {
    text-align: left;
}

.dapp-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.dapp-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.dapp-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.dapp-feature svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dapp-future {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.dapp-future h4 {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.dapp-future p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* dApp Visual */
.dapp-visual {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dapp-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.diagram-node {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wallet-node {
    border-color: var(--primary);
    background: rgba(0, 217, 255, 0.1);
}

.diagram-logo {
    width: 24px;
    height: 24px;
}

.diagram-arrow {
    width: 40px;
    height: 2px;
    background: var(--border-color);
    position: relative;
}

.diagram-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--border-color);
    border-top: 2px solid var(--border-color);
}

.dapp-code {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    overflow-x: auto;
}

.dapp-code pre {
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
}

.code-comment { color: var(--text-muted); }
.code-key { color: #00D9FF; }
.code-string { color: #00ff88; }

/* ===== Download Section ===== */
.download {
    padding: var(--section-padding) 0;
    background: var(--bg-dark);
}

.download-content {
    position: relative;
}

.download-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb-download {
    width: 600px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.1;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

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

.download-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.download-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.download-platform {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===== Footer ===== */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

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

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 3fr;
    }
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 300px;
}

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

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 6px 0;
    transition: var(--transition-fast);
}

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

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

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .chain-row {
        gap: 12px;
    }
    
    .chain-card {
        padding: 16px 20px;
        min-width: 100px;
    }
    
    .chain-icon {
        width: 36px;
        height: 36px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Animations ===== */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos-delay="50"] { transition-delay: 50ms; }
[data-aos-delay="100"] { transition-delay: 100ms; }
[data-aos-delay="150"] { transition-delay: 150ms; }
[data-aos-delay="200"] { transition-delay: 200ms; }
[data-aos-delay="250"] { transition-delay: 250ms; }
[data-aos-delay="300"] { transition-delay: 300ms; }
[data-aos-delay="400"] { transition-delay: 400ms; }
[data-aos-delay="500"] { transition-delay: 500ms; }
