:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b0;
    --accent-yellow: #f3ba2f;
    --accent-purple: #9945ff;
    --accent-purple-light: #b377ff;
    --border-color: rgba(255, 255, 255, 0.1);
    --glow-yellow: rgba(243, 186, 47, 0.3);
    --glow-purple: rgba(153, 69, 255, 0.3);
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.project-title {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: color 0.3s;
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-purple));
    transition: width 0.3s;
}

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

.wallet-button {
    padding: 0.5rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-purple));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 20px var(--glow-purple);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    height: fit-content;
}

.wallet-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--glow-purple), 0 0 40px var(--glow-yellow);
}

.wallet-button:active {
    transform: translateY(0);
}

.wallet-button.connected {
    background: linear-gradient(135deg, #10b981, var(--accent-purple));
}

.wallet-button-text {
    display: inline-block;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 6rem;
    padding: 2rem 0;
}

.hero-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    animation: float 3s ease-in-out infinite;
}

.hero-logo {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 16px;
}

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

.tagline {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.tagline-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Battery Section */
.battery-section {
    margin-bottom: 6rem;
    padding: 3rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    backdrop-filter: blur(20px);
}

.battery-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.battery-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.battery {
    position: relative;
    width: 200px;
    height: 400px;
    border: 3px solid var(--border-color);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    box-shadow: 
        0 0 30px var(--glow-purple),
        inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.battery-terminal {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 12px;
    background: var(--border-color);
    border-radius: 4px 4px 0 0;
}

.battery-body {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.battery-liquid {
    width: 100%;
    height: 85%;
    background: linear-gradient(180deg, 
        var(--accent-purple-light) 0%,
        var(--accent-purple) 50%,
        var(--accent-yellow) 100%);
    position: relative;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: liquidFlow 3s ease-in-out infinite;
    box-shadow: 
        0 0 20px var(--glow-purple),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
}

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

.liquid-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    animation: wave 2s linear infinite;
}

@keyframes wave {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.battery-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    z-index: 10;
}

.battery-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-value.highlight {
    color: var(--accent-purple);
    text-shadow: 0 0 10px var(--glow-purple);
}

.charge-message {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent-purple);
    padding: 1rem;
    background: rgba(153, 69, 255, 0.1);
    border-radius: 8px;
    border: 1px solid var(--accent-purple);
}

/* Charge Button Section */
.charge-section {
    text-align: center;
    margin-bottom: 6rem;
}

.charge-button {
    position: relative;
    padding: 1.5rem 4rem;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-purple));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    box-shadow: 
        0 0 30px var(--glow-purple),
        0 0 60px var(--glow-yellow);
    margin-bottom: 1.5rem;
}

.charge-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.charge-button:hover::before {
    width: 300px;
    height: 300px;
}

.charge-button:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 40px var(--glow-purple),
        0 0 80px var(--glow-yellow);
}

.charge-button:active {
    transform: scale(0.98);
}

.button-text {
    position: relative;
    z-index: 1;
}

.button-icon {
    position: relative;
    z-index: 1;
    margin-left: 0.5rem;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

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

.charge-hint {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.hint-small {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Tech Section */
.tech-section {
    margin-bottom: 6rem;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tech-card {
    padding: 2rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple);
    box-shadow: 0 10px 30px var(--glow-purple);
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tech-title {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.tech-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Section */
.about-section {
    margin-bottom: 6rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.visual-demo {
    padding: 2rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.color-transition {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.color-box {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    box-shadow: 0 0 30px;
}

.bnb-color {
    background: var(--accent-yellow);
    box-shadow: 0 0 30px var(--glow-yellow);
}

.sol-color {
    background: var(--accent-purple);
    box-shadow: 0 0 30px var(--glow-purple);
}

.arrow {
    font-size: 2rem;
    color: var(--text-secondary);
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

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

    .header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .nav {
        gap: 1rem;
    }

    .battery {
        width: 150px;
        height: 300px;
    }

    .battery-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .charge-button {
        padding: 1.25rem 3rem;
        font-size: 1.25rem;
    }

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

    .color-transition {
        flex-direction: column;
        gap: 1rem;
    }

    .arrow {
        transform: rotate(90deg);
    }

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

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

.hero,
.battery-section,
.charge-section,
.tech-section,
.about-section {
    animation: fadeInUp 0.8s ease-out;
}
