/* ===========================================
   WepPower - Powerbank Rental Startup
   Modern Dark Theme with Energy Colors
   =========================================== */

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

:root {
    /* Energy Colors - Yellow/Orange */
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --primary-light: #fbbf24;
    --secondary: #ef4444;
    --accent: #fcd34d;
    
    /* Dark Theme */
    --dark: #0a0a0f;
    --dark-light: #151520;
    --dark-card: #1a1a28;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --light: #f3f4f6;
    --white: #ffffff;
    
    /* Gradients */
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
    
    /* Shadows */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.14);
    --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.4);
    
    /* Border Radius */
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    min-height: 100%;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(3rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

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

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--gradient);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--gray);
}

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

/* Lightning Background Effects */
.lightning-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.lightning-bolt {
    position: absolute;
    font-size: 4rem;
    opacity: 0.03;
    animation: float 20s ease-in-out infinite;
}

.bolt-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.bolt-2 {
    top: 50%;
    right: 15%;
    animation-delay: -7s;
    font-size: 6rem;
}

.bolt-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: -14s;
    font-size: 3rem;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
}

.logo-text {
    font-weight: 800;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin-left: auto;
}

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

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

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

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

.nav-cta {
    margin-left: 1rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: var(--gradient-glow);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-subtle);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    color: var(--primary-light);
}

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

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

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-light);
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

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

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray);
    opacity: 0.3;
}

/* How it Works */
.how-it-works {
    padding: 8rem 0;
    position: relative;
}

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

.step-card {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.1);
}

.step-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.15;
    line-height: 1;
}

.step-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.step-card h3 {
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--gray-light);
    font-size: 0.95rem;
}

/* Features */
.features {
    padding: 8rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(21, 21, 32, 0.5) 50%, transparent 100%);
}

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

.feature-card {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-3px);
}

.feature-main {
    grid-column: span 1;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    background: var(--gradient-subtle);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.feature-main:hover {
    border-color: rgba(245, 158, 11, 0.5);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    margin-bottom: 1.25rem;
}

.feature-main .feature-icon {
    width: 80px;
    height: 80px;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.feature-badge {
    margin-top: auto;
    padding-top: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Pricing */
.pricing {
    padding: 8rem 0;
}

.pricing-wip {
    max-width: 600px;
    margin: 0 auto;
}

.wip-card {
    background: var(--dark-card);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    border: 2px dashed rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.wip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glow);
    opacity: 0.3;
    pointer-events: none;
}

.wip-icon {
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.wip-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.wip-card > p {
    color: var(--gray-light);
    margin-bottom: 2rem;
}

.wip-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.wip-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--gray-light);
    font-size: 0.95rem;
}

.wip-feature svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
}

.cta-card {
    background: var(--dark-card);
    border-radius: var(--radius-xl);
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    border: 1px solid rgba(245, 158, 11, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: var(--gradient-glow);
    opacity: 0.4;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content > p {
    color: var(--gray-light);
    margin-bottom: 2rem;
}

.cta-form .form-group {
    display: flex;
    gap: 0.75rem;
}

.cta-form input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray);
    border-radius: var(--radius);
    background: var(--dark);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.cta-form input::placeholder {
    color: var(--gray);
}

.form-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
}

/* Powerbank Mockup */
.cta-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.powerbank-mockup {
    position: relative;
}

.powerbank-body {
    width: 120px;
    height: 240px;
    background: linear-gradient(180deg, #2a2a3a 0%, #1a1a28 100%);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.powerbank-screen {
    background: var(--dark);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.battery-icon {
    width: 50px;
    height: 80px;
    border: 3px solid var(--primary);
    border-radius: 8px;
    margin: 0 auto 10px;
    position: relative;
    overflow: hidden;
}

.battery-icon::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 6px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.battery-level {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: var(--gradient);
    animation: charge 3s ease-in-out infinite;
}

@keyframes charge {
    0%, 100% {
        height: 100%;
    }
    50% {
        height: 60%;
    }
}

.battery-percent {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.powerbank-ports {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.port {
    width: 16px;
    height: 8px;
    background: var(--gray);
    border-radius: 2px;
}

.powerbank-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--gradient-glow);
    pointer-events: none;
    z-index: -1;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background: var(--dark-light);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--gray-light);
    margin-top: 1rem;
    max-width: 280px;
    font-size: 0.9rem;
}

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

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    color: var(--gray);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-main {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .cta-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .nav-cta {
        display: none;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-main {
        grid-column: span 1;
    }
    
    .cta-card {
        padding: 2rem;
    }
    
    .cta-form .form-group {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .step-card, .feature-card {
        padding: 1.5rem;
    }
    
    .wip-card {
        padding: 2rem;
    }
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--dark);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 5px;
}

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