@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #000000;
    --bg-slate: #0F172A;
    --bg-card: #111827;

    --primary-blue: #3B82F6;
    /* Professional Blue */
    --primary-hover: #2563EB;
    --secondary-green: #10B981;
    /* Success Green */
    --accent-red: #EF4444;

    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;

    --glass-bg: rgba(31, 41, 55, 0.4);
    /* Gray 800 with opacity */
    --glass-border: rgba(255, 255, 255, 0.05);

    --glow-primary: 0 0 20px rgba(59, 130, 246, 0.3);

    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(to bottom, var(--bg-slate), var(--bg-dark));
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary-hover) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    /* Smooth cubic bezier */
}

/* Variants */
.animate-on-scroll.fade-left {
    transform: translateX(-50px);
}

.animate-on-scroll.fade-right {
    transform: translateX(50px);
}

.animate-on-scroll.zoom-in {
    transform: scale(0.9);
}

/* Active State */
.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0) scale(1);
    /* Resets all transforms */
}

/* Staggered Delays using nth-child for grids */
.features-grid .feature-card:nth-child(1) {
    transition-delay: 0.1s;
}

.features-grid .feature-card:nth-child(2) {
    transition-delay: 0.2s;
}

.features-grid .feature-card:nth-child(3) {
    transition-delay: 0.3s;
}

.features-grid .feature-card:nth-child(4) {
    transition-delay: 0.4s;
}

.impact-grid .impact-item:nth-child(1) {
    transition-delay: 0.1s;
}

.impact-grid .impact-item:nth-child(2) {
    transition-delay: 0.2s;
}

.impact-grid .impact-item:nth-child(3) {
    transition-delay: 0.3s;
}

/* --- Header/Nav --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-fast);
}

header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    /* Deep Slate to match theme */
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-main);
}

.logo span {
    color: var(--primary-blue);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-main);
}

.cta-button {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-hover));
    color: #ffffff;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    /* Animated Grid Background */
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    /* Soften */
    z-index: -1;
    animation: pulse-glow 10s infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    /* Soften */
    z-index: -1;
    animation: pulse-glow 12s infinite alternate-reverse;
}

/* --- Hero Badge --- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 1rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 600;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    /* Green for 'New/Live' */
    border-radius: 50%;
    box-shadow: 0 0 10px #4ade80;
    animation: pulse-dot 2s infinite;
}

/* --- Floating Glass Cards --- */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background: rgba(15, 23, 42, 0.85) !important;
    /* Force darker bg */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10;
    animation: float-y 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.2rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.floating-card .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.floating-card .value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.card-1 {
    top: 15%;
    left: -40px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 15%;
    right: -30px;
    animation-delay: 2s;
}

.card-3 {
    top: 25%;
    right: -40px;
    animation-delay: 1s;
}

.card-4 {
    bottom: 30%;
    left: -50px;
    animation-delay: 3s;
}

@keyframes pulse-glow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes pulse-dot {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float-y {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@media (max-width: 900px) {
    .floating-card {
        display: none;
    }

    /* Hide on tablet/mobile */
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--text-main);
}

.stat-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.hero-image {
    position: relative;
    perspective: 1000px;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: var(--transition-smooth);
    border: 1px solid var(--glass-border);
}

.hero-image:hover img {
    transform: rotateY(0) rotateX(0);
}

/* --- Hero Compatibility Tag --- */
.hero-compatibility {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: fit-content;
    backdrop-filter: blur(5px);
}

.hero-compatibility span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.os-icons {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.os-icons i {
    font-size: 1.2rem;
    color: var(--text-main);
    transition: var(--transition-fast);
    cursor: help;
}

.os-icons i:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.os-icons .divider {
    width: 1px;
    height: 15px;
    background: rgba(255, 255, 255, 0.1);
}

/* --- Features Section --- */
.features {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Ecosystem Section --- */
.ecosystem {
    padding: 8rem 0;
    background: linear-gradient(180deg, transparent, rgba(0, 180, 216, 0.05), transparent);
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ecosystem-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.ecosystem-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ecosystem-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    transition: var(--transition-fast);
}

.ecosystem-item:hover {
    background: var(--glass-bg);
}

.eco-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Placeholders for HW images */
.hw-placeholder-box,
/* --- Hardware Showcase (Redesigned) --- */
.hardware-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
    padding: 2rem 0;
}

.hw-node {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    width: 300px;
    position: relative;
    transition: transform 0.4s ease, border-color 0.4s ease;
    border-bottom: 2px solid var(--accent);
}

.hw-node:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px -10px var(--accent);
}

.hw-node h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 600;
}

.hw-node p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.hw-features {
    list-style: none;
    padding: 0;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 12px;
}

.hw-features li {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hw-features li:last-child {
    margin-bottom: 0;
}

.hw-features i {
    color: var(--accent);
}

/* Icon & Glow */
.hw-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hw-icon.large {
    width: 100px;
    height: 100px;
    font-size: 3.5rem;
}

.glow-ring {
    position: absolute;
    top: -5px;
    bottom: -5px;
    left: -5px;
    right: -5px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0.3;
    animation: rotate 10s linear infinite;
}

/* Connectors */
.hw-connector {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    max-width: 100px;
}

.pulse-dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px #fff;
    animation: travel 2s infinite linear;
}

@keyframes travel {
    0% {
        left: 0;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

@media (max-width: 900px) {
    .hardware-showcase {
        flex-direction: column;
    }

    .hw-connector {
        display: none;
    }

    .hw-node {
        width: 100%;
        max-width: 400px;
    }
}

/* --- FAQ Section --- */
.faq-section {
    padding: 6rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-item {
    padding: 2rem;
    transition: var(--transition-fast);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.faq-item h4 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.faq-item h4 i {
    color: var(--primary-blue);
    margin-top: 3px;
}

.faq-item p {
    color: var(--text-muted);
    line-height: 1.6;
    padding-left: 2rem;
}

@media (max-width: 600px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-item h4 {
        font-size: 1.1rem;
    }
}

/* --- Call to Action --- */
.cta-section {
    padding: 8rem 0;
    text-align: center;
}

.cta-box {
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, rgba(17, 24, 39, 1) 100%);
    border: 1px solid var(--glass-border);
    padding: 5rem 2rem;
    border-radius: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

/* --- Footer --- */
footer {
    padding: 6rem 0 2rem;
    position: relative;
    background: linear-gradient(to top, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.8));
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

/* Glowing Top Border effect */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    opacity: 0.5;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo-img {
    height: 50px;
    /* Adjust based on logo aspect ratio */
    width: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.2));
}

.brand-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.95rem;
    position: relative;
}

.footer-col a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
    padding-left: 0;
    /* Override text hover */
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-badges {
    display: flex;
    gap: 1.5rem;
}

.footer-badges span {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-badges i {
    color: var(--secondary-green);
}

/* --- Global Map Section --- */
/* --- Global Map Section (CSS/SVG Version) --- */
.global-section {
    padding: 2rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.map-container {
    position: relative;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.3) 0%, rgba(15, 23, 42, 0) 70%);
    min-height: 450px;
}

.css-map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.world-svg {
    width: 100%;
    max-width: 1000px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.1));
}

/* Map Points */
.map-point {
    position: absolute;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.point-dot {
    width: 8px;
    height: 8px;
    background: #60a5fa;
    border-radius: 50%;
    box-shadow: 0 0 15px #3b82f6, 0 0 30px #2563eb;
    position: relative;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(96, 165, 250, 0.5);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

/* Floating Glass Cards (Always Visible) */
.point-tooltip {
    position: absolute;
    bottom: 25px;
    /* Position above the dot */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.65);
    /* Dark semi-transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    padding: 0.6rem 1rem;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 1;
    /* Always visible */
    pointer-events: auto;
    text-align: center;
    min-width: 100px;
    transition: transform 0.3s ease;
}

/* Connecting Line (Pro Polish) */
.point-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 6px;
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.5), transparent);
}

.point-tooltip span {
    display: block;
    color: var(--secondary-green);
    /* Highlight stats */
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Optional: Slight lift on hover interactively */
.map-point:hover .point-tooltip {
    transform: translateX(-50%) translateY(-5px);
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(59, 130, 246, 0.4);
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .map-container {
        min-height: 250px;
    }
}

/* --- Platform Section (Premium Design) --- */
.platforms-section {
    padding: 6rem 0 10rem 0;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.platform-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.platform-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow:
        0 20px 40px -5px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(59, 130, 246, 0.1);
}

.platform-card:hover::before {
    transform: translateX(100%);
}

.platform-icons {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;

    background: linear-gradient(135deg, #FFD700 0%, #F59E0B 50%, #3B82F6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.3));

    transform: scale(1);
    transition: transform var(--transition-fast);
}

.platform-card:hover .platform-icons {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

.platform-card h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.platform-label {
    color: var(--text-main);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* --- Mobile Navigation & Layout (REFACTORED) --- */

/* 1. Desktop Defaults (Explicit Safety) */
.mobile-menu-btn {
    display: none;
    /* Hidden by default on desktop */
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 1001;
}

.mobile-only {
    display: none !important;
    /* Never show mobile elements on desktop */
}

.desktop-only {
    display: inline-block;
    /* Show desktop elements */
}

/* Ensure Nav is horizontal on Desktop */
.nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    height: auto;
    width: auto;
    background: transparent;
    backdrop-filter: none;
    transform: none;
    gap: 2rem;
}

.nav-links li {
    opacity: 1;
    transform: none;
}

/* 2. Tablet Styles */
@media (max-width: 900px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-content {
        gap: 2rem;
    }
}

/* 3. Mobile Styles (Max-width 768px) */
@media (max-width: 768px) {

    /* --- Visibility Toggles --- */
    .mobile-menu-btn {
        display: block;
        /* Show hamburger */
    }

    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }

    /* --- Navigation Overlay (Premium Redesign) --- */
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 8, 0.6);
        /* Ultra translucent */
        backdrop-filter: blur(40px);
        /* Heavy frosted glass */
        -webkit-backdrop-filter: blur(40px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transform: translateY(-100%);
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        /* Elegant easing */
        z-index: 999;
        overflow: hidden;
    }

    /* Ambient Glow inside Menu */
    .nav-links::before {
        content: '';
        position: absolute;
        top: -20%;
        right: -20%;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
        pointer-events: none;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.5s ease-out;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
        transition-delay: calc(0.1s * var(--i));
        /* Requires --i index or just default delay fallback */
    }

    /* Fallback delay if no JS index */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.6s;
    }

    .nav-links a {
        font-family: 'Outfit', sans-serif;
        font-size: 2.2rem;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.8);
        text-transform: uppercase;
        letter-spacing: -1px;
        transition: 0.3s;
        position: relative;
    }

    .nav-links a:hover,
    .nav-links a:active {
        color: #fff;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
        transform: scale(1.05);
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--primary-blue);
        transform: translateX(-50%);
        transition: 0.3s;
    }

    .nav-links a:hover::after {
        width: 50%;
    }

    /* --- Layout Adjustments --- */
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 4rem;
    }

    /* --- Mobile Navigation & Layout (REFACTORED) --- */

    /* Header Color Fix for Mobile/Scroll */
    header.scrolled {
        background: rgba(15, 23, 42, 0.95);
        /* Deep Slate #0F172A */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 0.8rem 0;
        /* Reduced padding for mobile */
    }

    /* Default Mobile Header (Non-scrolled) */
    header {
        padding: 1rem 0;
        /* Reduced initial padding */
    }


}

/* Mobile Menu BG */
.nav-links {
    background: rgba(15, 23, 42, 0.98);
    /* Deep Slate */
}

/* 3. Mobile Styles (Max-width 768px) */
@media (max-width: 768px) {

    /* Fix Overflow/Margin Issues */
    body,
    html {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        padding: 0 1.25rem;
        /* Slightly reduced padding */
        width: 100%;
    }

    /* Hide floating elements that cause overflow */
    /* Hide background blobs only, keep cards visible but adapted */
    .hero::before,
    .hero::after {
        display: none !important;
    }

    /* Restore Floating Cards for Mobile (Floating not Stacked) */
    .floating-card {
        display: flex !important;
        position: absolute !important;
        padding: 0.5rem 0.8rem;
        /* Smaller card */
        gap: 0.5rem;
        margin: 0;
        width: auto;
        max-width: none;
        animation: float-y 6s ease-in-out infinite;
        /* Keep animation */
        justify-content: flex-start;
        z-index: 20;
    }

    .floating-card i {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .floating-card .label {
        font-size: 0.65rem;
    }

    .floating-card .value {
        font-size: 0.85rem;
    }

    /* Tweak Positions for Mobile to prevent cutoff */
    .card-1 {
        top: 5% !important;
        left: -10px !important;
    }

    .card-2 {
        bottom: 5% !important;
        right: -10px !important;
    }

    .card-3 {
        top: 25% !important;
        right: -10px !important;
    }

    .card-4 {
        bottom: 25% !important;
        left: -10px !important;
    }

    /* --- Hero Adjustments --- */
    .hero {
        padding-top: 100px;
        /* More space for header */
        padding-bottom: 4rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-badge {
        margin: 0 auto 1.5rem auto;
        /* Center badge */
    }

    .hero-text h1 {
        font-size: 2.5rem;
        /* Larger for impact */
        line-height: 1.1;
    }

    .hero-text p {
        font-size: 1.05rem;
        padding: 0;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    /* OS Compatibility Mobile */
    .hero-compatibility {
        margin: 2rem auto 0 auto;
        /* Center */
        width: 100%;
        /* Full width */
        flex-direction: column;
        gap: 1rem;
        background: rgba(255, 255, 255, 0.05);
        /* Slightly lighter */
    }

    .os-icons {
        width: 100%;
        justify-content: space-evenly;
        /* Spread icons */
    }

    .hero-stats {
        margin-top: 2.5rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 16px;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.5rem;
    }

    .stat-item h3 {
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .footer-col {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .footer-logo-img {
        margin: 0 auto 1.5rem auto;
        max-width: 150px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-badges {
        justify-content: center;
    }
}

.footer-col h4 {
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .ecosystem-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .ecosystem-grid:nth-child(even) .ecosystem-image {
        order: -1;
    }

    .ecosystem-list {
        align-items: center;
    }

    .ecosystem-item {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        justify-content: flex-start;
        text-align: left;
    }
}

/* --- Device Mockup (CSS iPhone) --- */
.device-mockup {
    position: relative;
    border-radius: 40px;
    padding: 12px;
    background: #2a2a2a;
    box-shadow:
        inset 0 0 4px 2px rgba(255, 255, 255, 0.1),
        0 0 0 2px #1a1a1a,
        0 25px 50px -12px rgba(0, 0, 0, 0.7);
    display: inline-block;
}

.device-screen {
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.device-screen img {
    display: block;
    width: 100%;
    height: auto;
}

.device-screen::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 25px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.hero-image .device-mockup {
    width: 70%;
    display: block;
    margin: 0 auto;
}

/* --- Premium Abstract Frame (Glass & Glow) --- */
.premium-frame {
    position: relative;
    border-radius: 24px;
    padding: 3px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow:
        0 20px 50px -10px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(59, 130, 246, 0.15);
    width: 70%;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.premium-frame img {
    border-radius: 21px;
    display: block;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.5);
}

/* --- Logo Image --- */
.logo-img {
    height: 50px;
    width: auto;
    vertical-align: middle;
}

/* --- Background Animation (Orbs) --- */
.background-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    animation-duration: 25s;
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    animation-duration: 30s;
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    animation-duration: 35s;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* --- Enhanced Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* --- Tournament Widget Styles --- */
.tournament-widget {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.t-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.t-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.t-title i {
    color: var(--primary-blue);
}

.t-badge {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.t-body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.match-item {
    display: grid;
    grid-template-columns: 40px 1fr 30px;
    align-items: center;
    background: rgba(10, 10, 15, 0.4);
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-fast);
}

.match-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.match-item.active-glow {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05), transparent);
}

.match-id {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.live-tag {
    background: var(--accent-red);
    color: white;
    font-size: 0.6rem;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 700;
    animation: pulse-red 1.5s infinite;
}

.match-players {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.p-name {
    font-size: 0.9rem;
    color: var(--text-main);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-name:first-child {
    text-align: right;
    padding-right: 1rem;
}

.p-name:last-child {
    text-align: left;
    padding-left: 1rem;
}

.p-name.active {
    color: var(--secondary-green);
}

.p-name.muted {
    color: var(--text-muted);
    opacity: 0.6;
}

.score-box {
    background: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 60px;
    text-align: center;
}

.score-box.live {
    border-color: var(--accent-red);
    color: var(--text-main);
}

.match-status {
    display: flex;
    justify-content: center;
}

.match-status.success i {
    color: var(--secondary-green);
}

@keyframes pulse-red {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .match-players {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }

    .p-name:first-child,
    .p-name:last-child {
        text-align: center;
        padding: 0;
    }

    .match-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }

    .match-id {
        display: none;
    }
}

/* --- Table Control Widget Styles --- */
.table-control-widget {
    background: rgba(15, 23, 42, 0.85);
    /* Slightly darker for better contrast */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    max-width: 450px;
    margin: 0 auto;
    font-family: 'Outfit', sans-serif;
}

.tc-header {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    padding: 1.2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
}

.tc-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.tc-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.tc-status {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary-green);
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--secondary-green);
}

.tc-subtitle {
    display: inline-block;
    font-size: 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--primary-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tc-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tc-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tc-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.tc-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-size: 1.1rem;
}

.tc-icon.orange {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.tc-icon.green {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.tc-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.tc-icon.cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}

.tc-icon.purple {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.tc-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tc-label .main {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.tc-label .sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tc-arrow {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    transition: 0.2s;
}

.tc-btn:hover .tc-arrow {
    color: var(--primary-blue);
    transform: translateX(3px);
}