/* ==========================================================================
   HQ Batteries - Main Stylesheet
   ========================================================================== */

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */
:root {
    --primary-color: #00ff88;
    --dark-bg: #000000;
    --card-bg: #1c1c1e;
    --text-primary: #ffffff;
    --text-secondary: #a1a1a6;
    --accent-green: #30d158;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 40px 80px;
    background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
}

.hero-content {
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-weight: 400;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border-radius: 980px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Sections (Common)
   ========================================================================== */
.section {
    padding: 120px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 20px;
    color: var(--text-secondary);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
}

/* ==========================================================================
   Specs Section
   ========================================================================== */
.specs-container {
    background: var(--card-bg);
    border-radius: 32px;
    padding: 60px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-top: 40px;
}

.spec-item {
    text-align: center;
}

.spec-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.spec-label {
    font-size: 16px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Timeline Section
   ========================================================================== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), transparent);
}

.timeline-item {
    margin-bottom: 48px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -46px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.timeline-item h3 {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 600;
}

.timeline-item p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-card {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(48, 209, 88, 0.1));
    border-radius: 32px;
    padding: 60px;
    text-align: center;
    border: 1px solid rgba(0, 255, 136, 0.2);
    max-width: 600px;
    margin: 0 auto;
}

.price {
    font-size: 72px;
    font-weight: 700;
    margin: 24px 0;
    color: var(--primary-color);
}

.price-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
    text-align: left;
}

.price-detail {
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.price-detail-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-detail-value {
    font-size: 18px;
    font-weight: 600;
    margin-top: 4px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-container {
    text-align: center;
    background: var(--card-bg);
    border-radius: 32px;
    padding: 80px 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-container h2 {
    font-size: 48px;
    margin-bottom: 24px;
}

.contact-container p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    text-align: center;
    padding: 60px 40px;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-heart {
    margin-top: 12px;
    font-size: 14px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .section {
        padding: 80px 20px;
    }

    .specs-container,
    .contact-container {
        padding: 40px 24px;
    }

    .pricing-card {
        padding: 40px 24px;
    }

    .price-details {
        grid-template-columns: 1fr;
    }
}
