/* ===== ROOT VARIABLES ===== */
:root {
    --pb-black: #0a0a0a;
    --pb-dark: #111111;
    --pb-dark2: #1a1a1a;
    --pb-dark3: #222222;
    --pb-yellow: #FFD600;
    --pb-yellow-light: #FFE740;
    --pb-yellow-glow: rgba(255, 214, 0, 0.3);
    --pb-yellow-dim: rgba(255, 214, 0, 0.1);
    --pb-white: #f5f5f5;
    --pb-gray: #888888;
    --pb-font-heading: 'Orbitron', sans-serif;
    --pb-font-body: 'Inter', sans-serif;
}

/* ===== BASE ===== */
html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

html {
    position: relative;
    min-height: 100%;
}

body.powerbid-body {
    margin: 0;
    padding: 0;
    background-color: var(--pb-black);
    color: var(--pb-white);
    font-family: var(--pb-font-body);
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.powerbid-nav {
    background: rgba(10, 10, 10, 0.92) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 214, 0, 0.15);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.powerbid-brand {
    font-family: var(--pb-font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.brand-bolt {
    color: var(--pb-yellow);
    animation: boltPulse 2s ease-in-out infinite;
}

@keyframes boltPulse {
    0%, 100% { text-shadow: 0 0 5px var(--pb-yellow-glow); }
    50% { text-shadow: 0 0 20px var(--pb-yellow), 0 0 40px var(--pb-yellow-glow); }
}

.powerbid-nav .nav-link {
    color: var(--pb-white) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}

.powerbid-nav .nav-link:hover {
    color: var(--pb-yellow) !important;
}

.nav-cta {
    border-radius: 30px !important;
    color: var(--pb-black) !important;
    font-size: 0.85rem !important;
    transition: all 0.3s !important;
}

.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--pb-yellow-glow);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--pb-black) 0%, var(--pb-dark) 50%, var(--pb-black) 100%);
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1rem;
}

.hero-badge {
    display: inline-block;
    background: var(--pb-yellow-dim);
    border: 1px solid rgba(255, 214, 0, 0.3);
    color: var(--pb-yellow);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-family: var(--pb-font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-title .highlight {
    color: var(--pb-yellow);
    text-shadow: 0 0 30px var(--pb-yellow-glow);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--pb-gray);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.6s both;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-glow {
    background: var(--pb-yellow);
    color: var(--pb-black);
    font-weight: 700;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--pb-yellow-glow), 0 10px 40px rgba(255, 214, 0, 0.2);
    color: var(--pb-black);
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
}

.btn-glow:hover::after {
    left: 100%;
}

.btn-outline-glow {
    background: transparent;
    color: var(--pb-yellow);
    font-weight: 600;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    border: 2px solid var(--pb-yellow);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-outline-glow:hover {
    background: var(--pb-yellow-dim);
    box-shadow: 0 0 20px var(--pb-yellow-glow);
}

/* ===== POWER LINES (SVG animated) ===== */
.power-lines-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: var(--pb-dark2);
    border-top: 1px solid rgba(255, 214, 0, 0.1);
    border-bottom: 1px solid rgba(255, 214, 0, 0.1);
    padding: 2.5rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-family: var(--pb-font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--pb-yellow);
    display: block;
}

.stat-label {
    color: var(--pb-gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

/* ===== HOW IT WORKS ===== */
.section-dark {
    background: var(--pb-black);
    padding: 5rem 0;
}

.section-alt {
    background: var(--pb-dark);
    padding: 5rem 0;
}

.section-title {
    font-family: var(--pb-font-heading);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-title .highlight {
    color: var(--pb-yellow);
}

.section-subtitle {
    text-align: center;
    color: var(--pb-gray);
    margin-bottom: 3.5rem;
    font-size: 1rem;
}

.step-card {
    background: var(--pb-dark2);
    border: 1px solid rgba(255, 214, 0, 0.08);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--pb-yellow), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.step-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 214, 0, 0.25);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px var(--pb-yellow-dim);
}

.step-card:hover::before {
    opacity: 1;
}

.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--pb-yellow-dim);
    border: 2px solid rgba(255, 214, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.6rem;
    color: var(--pb-yellow);
    transition: all 0.4s;
}

.step-card:hover .step-icon {
    background: var(--pb-yellow);
    color: var(--pb-black);
    box-shadow: 0 0 30px var(--pb-yellow-glow);
}

.step-number {
    font-family: var(--pb-font-heading);
    font-size: 0.75rem;
    color: var(--pb-yellow);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.step-card h4 {
    font-family: var(--pb-font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--pb-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== ROLE CARDS (Consumer / Supplier) ===== */
.role-card {
    background: var(--pb-dark2);
    border: 1px solid rgba(255, 214, 0, 0.08);
    border-radius: 20px;
    padding: 3rem 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.role-card::after {
    content: '';
    position: absolute;
    bottom: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, var(--pb-yellow-dim), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.role-card:hover {
    border-color: rgba(255, 214, 0, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
}

.role-card:hover::after {
    opacity: 1;
}

.role-card-content {
    position: relative;
    z-index: 1;
}

.role-icon {
    font-size: 3rem;
    color: var(--pb-yellow);
    margin-bottom: 1.5rem;
    display: block;
}

.role-card h3 {
    font-family: var(--pb-font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.role-card p {
    color: var(--pb-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.role-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.role-features li {
    color: var(--pb-white);
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.role-features li i {
    color: var(--pb-yellow);
    margin-right: 0.5rem;
    width: 18px;
    text-align: center;
}

/* ===== PULSE ANIMATION for CTA ===== */
.pulse-ring {
    position: relative;
    display: inline-block;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    border-radius: 50px;
    border: 2px solid var(--pb-yellow);
    transform: translate(-50%, -50%);
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% { width: 100%; height: 100%; opacity: 1; }
    100% { width: 140%; height: 200%; opacity: 0; }
}

/* ===== JOIN / CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--pb-dark) 0%, var(--pb-black) 50%, var(--pb-dark2) 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--pb-yellow-dim), transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-family: var(--pb-font-heading);
    font-size: 2.2rem;
    font-weight: 800;
}

.cta-subtitle {
    color: var(--pb-gray);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 1rem auto 2.5rem;
    line-height: 1.7;
}

/* ===== ELECTRIC SPARK ANIMATION ===== */
.spark-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--pb-yellow);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--pb-yellow), 0 0 12px var(--pb-yellow-glow);
    animation: sparkMove linear infinite;
}

@keyframes sparkMove {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    50% { opacity: 0.5; }
    100% { transform: translate(var(--spark-x), var(--spark-y)) scale(0); opacity: 0; }
}

/* ===== POWER LINE ANIMATION ===== */
.power-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--pb-yellow), transparent);
    opacity: 0.1;
    animation: powerLineGlow 4s ease-in-out infinite;
}

@keyframes powerLineGlow {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.2; }
}

/* ===== FOOTER ===== */
.powerbid-footer {
    background: var(--pb-dark);
    border-top: 1px solid rgba(255, 214, 0, 0.1);
    color: var(--pb-gray);
    font-family: var(--pb-font-body);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 1.6rem; }
    .cta-title { font-size: 1.8rem; }
    .stat-number { font-size: 1.8rem; }
}

@media (max-width: 767px) {
    .hero-section { min-height: 90vh; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.4rem; }
    .cta-title { font-size: 1.5rem; }
    .role-card { padding: 2rem 1.5rem; }
    .step-card { margin-bottom: 1.5rem; }
    .stat-number { font-size: 1.5rem; }
    .stat-label { font-size: 0.75rem; }
    .btn-glow, .btn-outline-glow {
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.5rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
}

/* ===== SCROLL BAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--pb-black); }
::-webkit-scrollbar-thumb { background: var(--pb-dark3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--pb-yellow); }