/* ═══════════════════════════════════════════
   FireV Website — Design System & Styles
   ═══════════════════════════════════════════ */

/* ——— TOKENS ——— */
:root {
    --bg-deepest: #04040a;
    --bg-deep: #08081a;
    --bg-base: #0c0c1e;
    --bg-surface: #111130;
    --bg-elevated: #191950;
    --bg-hover: #1e1e5a;

    --text-primary: #eaeaff;
    --text-secondary: #9999bb;
    --text-muted: #5a5a80;

    --accent: #ff4d00;
    --accent-light: #ff8800;
    --accent-glow: rgba(255, 77, 0, .35);
    --gradient: linear-gradient(135deg, #ff4d00 0%, #ff8800 100%);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 50px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, .5);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, .6);
    --shadow-glow: 0 0 40px var(--accent-glow);

    --font-body: 'Inter', 'Rajdhani', sans-serif;
    --font-heading: 'Orbitron', sans-serif;

    --transition: .3s cubic-bezier(.4, 0, .2, 1);
    --nav-h: 72px;
}

/* ——— RESET ——— */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-primary);
    background: var(--bg-deepest);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ——— ACCENT GRADIENT TEXT ——— */
.accent {
    color: var(--accent);
}

.accent-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ——— BUTTONS ——— */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: var(--radius-xl);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--shadow-glow), var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 60px var(--accent-glow), var(--shadow-lg);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0) scale(.98);
}

.btn-ghost {
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .03);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: rgba(255, 77, 0, .06);
}

.btn-lg {
    padding: 18px 42px;
    font-size: 14px;
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 1000;
    background: rgba(4, 4, 10, .6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
    background: rgba(4, 4, 10, .92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-flame {
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 1px;
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--gradient);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--accent-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 50%, rgba(255, 77, 0, .12) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 30%, rgba(255, 136, 0, .08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(110, 31, 255, .06) 0%, transparent 40%),
        linear-gradient(180deg, var(--bg-deepest) 0%, var(--bg-deep) 50%, var(--bg-deepest) 100%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }

    10% {
        opacity: .6;
    }

    90% {
        opacity: .1;
    }

    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(.2);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: var(--nav-h);
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 77, 0, .1);
    border: 1px solid rgba(255, 77, 0, .2);
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 28px;
    animation: fadeInDown .8s ease;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 4px;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-desc {
    max-width: 600px;
    margin: 0 auto 36px;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
    animation: fadeInDown 1.2s ease;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
    animation: fadeInUp 1.2s ease;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    animation: fadeInUp 1.4s ease;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat-value {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    animation: bounce 2s infinite;
    z-index: 1;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════
   SECTIONS COMMON
   ═══════════════════════════════════════════ */
section {
    padding: 100px 0;
    position: relative;
}

.section-label {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 16px;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 56px;
    font-size: 16px;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════ */
#features {
    background: var(--bg-deep);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, .04);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 77, 0, .15);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 77, 0, .08);
    border-radius: var(--radius-md);
    color: var(--accent-light);
    margin-bottom: 20px;
    transition: background var(--transition), transform var(--transition);
}

.feature-card:hover .feature-icon {
    background: rgba(255, 77, 0, .15);
    transform: scale(1.08);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ——— AOS (animate on scroll) ——— */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════
   STATS / COMMUNITY
   ═══════════════════════════════════════════ */
#stats {
    background: var(--bg-deepest);
    overflow: hidden;
}

.stats-showcase {
    display: flex;
    align-items: center;
    gap: 80px;
}

.stats-text {
    flex: 1;
}

.stats-text .section-label,
.stats-text .section-title,
.stats-text .section-desc {
    text-align: left;
    margin-left: 0;
}

.stats-text .section-desc {
    margin-bottom: 36px;
}

.stats-counters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-block {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-text {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.stats-visual {
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 77, 0, .12) 0%, transparent 70%);
    animation: pulse-orb 4s ease-in-out infinite;
}

@keyframes pulse-orb {

    0%,
    100% {
        transform: scale(1);
        opacity: .6;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.stats-ring {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring-progress {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    animation: draw-ring 2s ease forwards;
}

@keyframes draw-ring {
    from {
        stroke-dashoffset: 565.48;
    }

    to {
        stroke-dashoffset: 141.37;
    }
}

.ring-label {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ring-value {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ring-text {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ═══════════════════════════════════════════
   NEWS
   ═══════════════════════════════════════════ */
#news {
    background: var(--bg-deep);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.news-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, .04);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 77, 0, .15);
    box-shadow: var(--shadow-lg);
}

.news-card.large {
    grid-row: span 2;
}

.news-card.large .news-thumb {
    height: 240px;
}

.news-thumb {
    height: 140px;
    flex-shrink: 0;
}

.news-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 77, 0, .1);
    color: var(--accent-light);
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    width: fit-content;
}

.news-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.news-info h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 10px;
}

.news-info p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.news-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    transition: color var(--transition);
}

.news-link:hover {
    color: var(--accent-light);
}

/* ═══════════════════════════════════════════
   DOWNLOAD CTA
   ═══════════════════════════════════════════ */
#download {
    background: var(--bg-deepest);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-inner {
    position: relative;
    z-index: 1;
}

.download-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 77, 0, .08) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.download-actions {
    margin-bottom: 20px;
}

.download-meta {
    display: flex;
    gap: 12px;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 28px;
}

.platform-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.platform-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
#footer {
    background: var(--bg-deep);
    border-top: 1px solid rgba(255, 255, 255, .04);
    padding: 60px 0 0;
}

.footer-inner {
    display: flex;
    gap: 80px;
    padding-bottom: 48px;
}

.footer-brand {
    flex: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 260px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, .04);
    color: var(--text-muted);
    font-size: 13px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 968px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* Mobile menu */
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(4, 4, 10, .97);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, .06);
        animation: fadeInDown .3s ease;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-showcase {
        flex-direction: column;
        gap: 48px;
    }

    .stats-text .section-label,
    .stats-text .section-title,
    .stats-text .section-desc {
        text-align: center;
    }

    .stats-text .section-desc {
        margin: 0 auto 36px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card.large {
        grid-row: span 1;
    }

    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        gap: 32px;
        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .hero-stats {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        letter-spacing: 1px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stats-counters {
        grid-template-columns: 1fr;
    }
}