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

html, body {
    height: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

:root {
    --bg-primary: #0a0f0a;
    --bg-secondary: #0d1a0d;
    --bg-tertiary: #122912;
    --text-primary: #ffffff;
    --text-secondary: #98b298;
    --text-tertiary: #5e755e;
    --accent: #00e676;
    --accent-hover: #00c853;
    --neon-gold: #00e676;
    --neon-gold-light: #33ff99;
    --border: rgba(0, 230, 118, 0.10);
    --border-hover: rgba(0, 230, 118, 0.22);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(700px, 90vw);
    height: min(700px, 90vw);
    background: radial-gradient(circle, rgba(0, 230, 118, 0.02), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

#app {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

input, textarea {
    -webkit-user-select: text;
    user-select: text;
}

/* ========== HEADER ========== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(6px, 1.5vw, 12px) clamp(10px, 3vw, 24px);
    background: rgba(10, 15, 14, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 230, 118, 0.12);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    gap: clamp(4px, 1.5vw, 12px);
    min-height: clamp(40px, 8vw, 56px);
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: clamp(4px, 1vw, 8px);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: clamp(14px, 3vw, 20px);
    text-shadow: 0 0 8px rgba(0, 230, 118, 0.15);
    white-space: nowrap;
}

.logo img {
    width: clamp(24px, 5vw, 32px);
    height: clamp(24px, 5vw, 32px);
    border-radius: 50%;
}

.nav {
    display: flex;
    gap: clamp(2px, 0.8vw, 8px);
    flex-shrink: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: clamp(5px, 1.2vw, 8px) clamp(8px, 2vw, 12px);
    border-radius: clamp(8px, 2vw, 12px);
    font-weight: 500;
    font-size: clamp(12px, 2.5vw, 14px);
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.header-right {
    display: flex;
    gap: clamp(4px, 1.2vw, 8px);
    align-items: center;
    flex-shrink: 0;
    position: relative;
}

/* ========== HOME PAGE ========== */
.wallet-btn {
    padding: clamp(5px, 1.2vw, 8px) clamp(10px, 2.5vw, 16px);
    background: linear-gradient(135deg, var(--accent), var(--neon-gold));
    border: none;
    border-radius: 24px;
    color: white;
    font-size: clamp(11px, 2.5vw, 14px);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.08);
    white-space: nowrap;
    flex-shrink: 0;
}

.wallet-btn:hover {
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.12);
}

.home-page {
    flex: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 32px);
    display: flex;
    flex-direction: column;
    gap: clamp(48px, 8vw, 96px);
}

/* Hero */
.hero {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    text-align: center;
    padding: clamp(56px, 10vw, 120px) clamp(20px, 5vw, 48px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 3vw, 24px);
    overflow: hidden;
}

.hero-badge {
    display: inline-block;
    padding: clamp(5px, 1.2vw, 8px) clamp(12px, 2.5vw, 18px);
    background: rgba(0, 230, 118, 0.06);
    border: 1px solid rgba(0, 230, 118, 0.18);
    border-radius: 999px;
    color: var(--neon-gold);
    font-size: clamp(11px, 2.5vw, 14px);
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.03);
}

.hero-title {
    font-size: clamp(32px, 7vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    max-width: 14ch;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--accent), var(--neon-gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 230, 118, 0.08);
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: clamp(14px, 2.8vw, 18px);
    line-height: 1.6;
    max-width: 52ch;
}

.hero-actions {
    display: flex;
    gap: clamp(10px, 2vw, 16px);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: clamp(4px, 1vw, 8px);
}

.hero-btn {
    padding: clamp(10px, 2vw, 14px) clamp(22px, 4vw, 32px);
    border-radius: 24px;
    font-size: clamp(13px, 2.6vw, 16px);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--neon-gold));
    color: white;
    border: none;
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.1);
}

.hero-btn.primary:hover {
    box-shadow: 0 0 18px rgba(0, 230, 118, 0.15);
    transform: translateY(-1px);
}

.hero-btn.secondary {
    background: rgba(0, 230, 118, 0.04);
    color: var(--text-primary);
    border: 1px solid rgba(0, 230, 118, 0.18);
}

.hero-btn.secondary:hover {
    border-color: var(--neon-gold);
    background: rgba(0, 230, 118, 0.08);
}

.hero-rocket {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, 80vw);
    height: auto;
    opacity: 0.1;
    pointer-events: none;
    border-radius: 50%;
    filter: drop-shadow(0 0 60px rgba(0, 230, 118, 0.1));
    z-index: 0;
}

.hero > *:not(.hero-rocket) {
    position: relative;
    z-index: 1;
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 2.5vw, 20px);
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 230, 118, 0.12);
    border-radius: clamp(12px, 3vw, 20px);
    padding: clamp(18px, 3vw, 28px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1.5vw, 12px);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.02), 0 0 40px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.stat-icon {
    width: clamp(32px, 6vw, 44px);
    height: clamp(32px, 6vw, 44px);
    border-radius: 50%;
    object-fit: cover;
    opacity: 0.9;
}

.stat-value {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--neon-gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-secondary);
    font-size: clamp(12px, 2.5vw, 15px);
    font-weight: 500;
}

/* Section titles */
.section-title {
    font-size: clamp(22px, 5vw, 36px);
    font-weight: 700;
    text-align: center;
    margin-bottom: clamp(24px, 4vw, 40px);
    letter-spacing: -0.5px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 2.5vw, 24px);
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 230, 118, 0.12);
    border-radius: clamp(12px, 3vw, 20px);
    padding: clamp(20px, 3vw, 32px);
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vw, 14px);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.02), 0 0 40px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.04);
}

.feature-icon {
    width: clamp(44px, 8vw, 56px);
    height: clamp(44px, 8vw, 56px);
    border-radius: clamp(10px, 2vw, 14px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 230, 118, 0.06);
    border: 1px solid rgba(0, 230, 118, 0.15);
    color: var(--neon-gold);
    margin-bottom: clamp(4px, 1vw, 8px);
}

.feature-icon svg {
    width: 55%;
    height: 55%;
}

.feature-card h3 {
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: clamp(13px, 2.5vw, 15px);
    line-height: 1.6;
}

/* How it works */
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(8px, 2vw, 16px);
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 230, 118, 0.12);
    border-radius: clamp(12px, 3vw, 20px);
    padding: clamp(20px, 3vw, 28px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1.5vw, 12px);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.02);
}

.step-number {
    width: clamp(36px, 6vw, 44px);
    height: clamp(36px, 6vw, 44px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--neon-gold));
    color: white;
    font-weight: 700;
    font-size: clamp(16px, 3vw, 20px);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.08);
}

.step h3 {
    font-size: clamp(15px, 3vw, 18px);
    font-weight: 600;
}

.step p {
    color: var(--text-secondary);
    font-size: clamp(12px, 2.5vw, 14px);
    line-height: 1.6;
}

.step-connector {
    flex-shrink: 0;
    width: clamp(24px, 4vw, 48px);
    height: 2px;
    margin-top: clamp(40px, 7vw, 56px);
    background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.15), transparent);
}

/* Bottom CTA */
.bottom-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.04), rgba(0, 230, 118, 0.01));
    border: 1px solid rgba(0, 230, 118, 0.15);
    border-radius: clamp(16px, 4vw, 28px);
    padding: clamp(32px, 6vw, 64px) clamp(20px, 4vw, 32px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(12px, 2.5vw, 18px);
}

.bottom-cta h2 {
    font-size: clamp(24px, 5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.bottom-cta p {
    color: var(--text-secondary);
    font-size: clamp(14px, 2.8vw, 17px);
    max-width: 46ch;
    line-height: 1.6;
}

/* Footer */
.footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(0, 230, 118, 0.10);
    background: rgba(10, 15, 14, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(14px, 3vw, 20px) clamp(16px, 4vw, 32px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: clamp(12px, 2.5vw, 14px);
}

.footer-brand strong {
    color: var(--neon-gold);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        position: static;
        transform: none;
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 4px;
    }
    .header {
        flex-wrap: wrap;
    }
    .stats-row,
    .features-grid {
        grid-template-columns: 1fr;
    }
    .steps {
        flex-direction: column;
        align-items: center;
    }
    .step-connector {
        width: 2px;
        height: clamp(20px, 4vw, 32px);
        margin-top: 0;
        background: linear-gradient(180deg, transparent, rgba(0, 230, 118, 0.15), transparent);
    }
    .hero-rocket {
        display: none;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 230, 118, 0.12);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}
