/* ==============================
   RankedX Landing Page
   ============================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0b0b12;
    --bg-secondary: #12121c;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #eeeef2;
    --text-secondary: rgba(238, 238, 242, 0.5);
    --accent: #e52d27;
    --accent-bright: #ff4136;
    --accent-glow: rgba(229, 45, 39, 0.3);
    --accent-dark: #8b1a17;
    --accent-surface: rgba(229, 45, 39, 0.08);
    --border: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(229, 45, 39, 0.2);
    --radius: 16px;
    --radius-sm: 10px;
    --font-heading: 'Russo One', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Accent color */
.accent {
    color: var(--accent);
}

/* ===== Background Glow ===== */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -200px;
    right: -100px;
    animation: floatGlow 10s ease-in-out infinite;
}

.bg-glow-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-dark);
    bottom: -100px;
    left: -150px;
    animation: floatGlow 12s ease-in-out infinite reverse;
}

@keyframes floatGlow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(11, 11, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 22px;
    letter-spacing: 2px;
}

.nav-logo-text {
    color: var(--text-primary);
}

.nav-logo-x {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
    letter-spacing: 0.3px;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
}

.hero-inner {
    text-align: center;
    padding: 60px 0;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--accent-surface);
    border: 1px solid var(--border-accent);
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 28px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 7vw, 72px);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-line {
    display: block;
}

.hero-title .accent {
    text-shadow: 0 0 40px var(--accent-glow);
}

.hero-desc {
    max-width: 540px;
    margin: 0 auto 36px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(145deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 32px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 16px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-stat-value {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--accent);
}

.hero-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* ===== Sections ===== */
.section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 4vw, 36px);
    text-align: center;
    margin-bottom: 20px;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 48px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    border-color: var(--border-accent);
    background: rgba(255, 255, 255, 0.04);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--accent-surface);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 18px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.feature-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    text-align: center;
}

.cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-text {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .hero-stat-divider {
        width: 36px;
        height: 1px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}