/**
 * QBR HUB - Core Stylesheet
 * High-performance, modern, cyber-glassmorphism aesthetic.
 */

@import url('variables.css');

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessible focus styling */
:focus-visible {
    outline: 2px solid var(--neon-green);
    outline-offset: 4px;
}

/* Ambient Cyber Grid & Glow Background */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-bg::before {
    content: '';
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--neon-green-rgb), 0.12) 0%, rgba(var(--neon-green-rgb), 0.03) 45%, transparent 70%);
    filter: blur(60px);
}

.ambient-bg::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: 5%;
    width: 600px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--neon-green-rgb), 0.06) 0%, transparent 65%);
    filter: blur(70px);
}

/* Subtle Tech Matrix Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
    mask-image: radial-gradient(ellipse at 50% 40%, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 40%, transparent 80%);
}

/* Header */
header {
    position: relative;
    z-index: 2;
    max-width: var(--max-content-width);
    width: 100%;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 2rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container {
    display: inline-block;
    transition: var(--transition-smooth);
}

.logo-container:hover {
    transform: scale(1.02);
}

.logo-container img {
    max-width: 290px;
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 18px rgba(var(--neon-green-rgb), 0.45)) 
            drop-shadow(0 0 35px rgba(var(--neon-green-rgb), 0.2));
    transition: filter 0.4s ease;
}

.logo-container:hover img {
    filter: drop-shadow(0 0 25px rgba(var(--neon-green-rgb), 0.6)) 
            drop-shadow(0 0 45px rgba(var(--neon-green-rgb), 0.3));
}

/* Main Content Wrapper */
main {
    position: relative;
    z-index: 2;
    max-width: var(--max-content-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem 4rem 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Hero Badge */
.badge {
    background-color: var(--neon-subtle);
    color: var(--neon-green);
    padding: 0.55rem 1.3rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid var(--neon-border);
    box-shadow: 0 0 20px rgba(var(--neon-green-rgb), 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
    animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

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

/* Hero Title & Tagline */
h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    letter-spacing: -0.7px;
    max-width: 870px;
    text-wrap: balance;
}

h1 span {
    color: var(--neon-green);
    text-shadow: 0 0 20px rgba(var(--neon-green-rgb), 0.35);
}

.tagline {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.125rem);
    max-width: 740px;
    margin-bottom: 3.5rem;
    line-height: 1.7;
    text-wrap: pretty;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    width: 100%;
    max-width: 980px;
    margin-bottom: 3.5rem;
}

.feature-card {
    background-color: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.25rem;
    border-radius: var(--radius-md);
    text-align: left;
    border: 1px solid var(--card-border);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Subtle hover spotlight effect */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--neon-green-rgb), 0.6), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-border-hover);
    background-color: var(--card-bg-hover);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6),
                0 0 25px rgba(var(--neon-green-rgb), 0.12);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    color: var(--neon-green);
    font-size: 1.35rem;
    margin-bottom: 1.35rem;
    background: var(--neon-subtle);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--neon-border);
    transition: var(--transition-fast);
}

.feature-card:hover .feature-icon {
    transform: scale(1.08);
    background-color: rgba(var(--neon-green-rgb), 0.14);
    box-shadow: 0 0 15px rgba(var(--neon-green-rgb), 0.25);
}

.feature-card h2,
.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
    font-weight: 700;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Benefits Section */
.benefits-section {
    background: linear-gradient(135deg, rgba(22, 25, 35, 0.8) 0%, rgba(13, 15, 22, 0.8) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.75rem;
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    text-align: left;
    margin-bottom: 3.5rem;
    box-shadow: 0 16px 40px -15px rgba(0, 0, 0, 0.5);
}

.benefits-section h2,
.benefits-section h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.benefits-section h2 i,
.benefits-section h4 i {
    color: var(--neon-green);
    filter: drop-shadow(0 0 8px rgba(var(--neon-green-rgb), 0.4));
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.4rem;
    list-style: none;
}

.benefits-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.benefits-list li .icon-wrapper {
    background: var(--neon-subtle);
    border: 1px solid var(--neon-border);
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    margin-top: 0.15rem;
}

.benefits-list li .icon-wrapper i {
    color: var(--neon-green);
    font-size: 0.75rem;
}

.benefits-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Construction / Roadmap Notice */
.construction-notice {
    color: var(--text-secondary);
    font-size: 0.92rem;
    border: 1px dashed var(--neon-border);
    padding: 1.25rem 2.25rem;
    border-radius: var(--radius-md);
    background-color: rgba(var(--neon-green-rgb), 0.02);
    max-width: 700px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    text-align: left;
}

.construction-notice i {
    color: var(--neon-green);
    font-size: 1.1rem;
    min-width: 20px;
}

/* Footer */
footer {
    position: relative;
    z-index: 2;
    background-color: #06070a;
    width: 100%;
    padding: 2.25rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.88rem;
}

footer p {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
}

footer span {
    color: var(--text-primary);
    font-weight: 600;
}

footer strong {
    color: var(--neon-green);
    font-weight: 600;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    header {
        padding: 2.5rem 1rem 1.5rem 1rem;
    }

    .logo-container img {
        max-width: 230px;
    }

    main {
        padding: 0 1rem 3rem 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .benefits-section {
        padding: 1.75rem 1.25rem;
    }

    .benefits-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .construction-notice {
        padding: 1rem 1.25rem;
        flex-direction: column;
        text-align: center;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
