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

:root {
    --primary: #6c5ce7;
    --primary-glow: rgba(108, 92, 231, 0.5);
    --secondary: #a29bfe;
    --accent: #00cec9;
    --accent-glow: rgba(0, 206, 201, 0.5);
    --dark: #0f0c29;
    --darker: #050414;
    --light: #f1f2f6;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-heavy: rgba(255, 255, 255, 0.07);
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --menu-bg: rgba(5, 4, 20, 0.95);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* --- Mesh Gradient Background --- */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: var(--darker);
    overflow: hidden;
}

.mesh-circle {
    position: absolute;
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.5;
    transition: transform 1.5s cubic-bezier(0.1, 0.7, 1.0, 0.1);
    pointer-events: none;
}

.c1 { width: 800px; height: 800px; background: radial-gradient(circle, var(--primary), transparent); top: -200px; right: -100px; }
.c2 { width: 600px; height: 600px; background: radial-gradient(circle, var(--accent), transparent); bottom: -150px; left: -100px; }
.c3 { width: 400px; height: 400px; background: radial-gradient(circle, #ee5253, transparent); top: 40%; left: 30%; opacity: 0.2; }

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(5, 4, 20, 0.7);
    backdrop-filter: blur(30px);
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Orbitron', sans-serif;
}

.logo span {
    background: linear-gradient(90deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    opacity: 0.6;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.nav-btns {
    display: flex;
    gap: 1.5rem;
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: white;
    transition: var(--transition);
}

.mobile-menu-active .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-active .menu-toggle span:nth-child(2) { opacity: 0; }
.mobile-menu-active .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Mobile Nav Overlay --- */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background: var(--menu-bg);
    backdrop-filter: blur(20px);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav a {
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
}

.mobile-nav a:hover {
    color: var(--accent);
    letter-spacing: 0.1em;
}

/* --- Buttons --- */
.btn {
    padding: 1rem 2.2rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 10px 30px var(--primary-glow);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px var(--primary-glow);
}

.btn-outline {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--light);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--glass-heavy);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-5px);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
}

.hero h1 {
    font-size: 5.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #fff 30%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.hero h1 span {
    display: block;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
}

.hero-visual {
    flex: 1;
    position: relative;
    perspective: 1000px;
}

.hero-visual img {
    width: 110%;
    transform: rotateY(-15deg) rotateX(10deg);
    border-radius: 30px;
    box-shadow: -50px 50px 100px rgba(0,0,0,0.8);
    transition: var(--transition);
}

.hero-visual:hover img {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}

/* --- Match Simulation --- */
.simulation-container {
    padding: 100px 0;
    position: relative;
}

.sim-window {
    background: rgba(0,0,0,0.8);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.sim-header {
    background: #1a1a1a;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.sim-dots {
    display: flex;
    gap: 8px;
}

.sim-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.sim-body {
    padding: 2rem;
    min-height: 400px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    color: #00ff00;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sim-line {
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.match-card {
    background: var(--glass);
    border: 1px solid var(--accent);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--accent-glow); }
    70% { box-shadow: 0 0 0 15px rgba(0, 206, 201, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 206, 201, 0); }
}

.avatar {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* --- Glass Cards --- */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
    pointer-events: none;
}

/* --- Features Grid --- */
.features {
    padding: 150px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 6rem;
}

.section-head h2 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

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

.feature-card {
    text-align: left;
}

.feature-card:hover {
    background: var(--glass-heavy);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(108, 92, 231, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

/* --- Trust Bar --- */
.trust-bar {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    text-align: center;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 4rem;
    opacity: 0.3;
    filter: grayscale(1);
    flex-wrap: wrap;
    align-items: center;
}

.trust-logos span {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
}

/* --- Stats Section --- */
.stats {
    padding: 100px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.5;
}

/* --- CTA --- */
.cta-section {
    padding: 150px 0;
}

.cta-card {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(0, 206, 201, 0.15));
    padding: 6rem;
    text-align: center;
}

.cta-card h2 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Footer --- */
footer {
    padding: 100px 0 50px;
    background: rgba(5, 4, 20, 0.5);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    opacity: 0.4;
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .hero h1 { font-size: 4rem; }
}

@media (max-width: 992px) {
    .hero { flex-direction: column; text-align: center; padding-bottom: 5rem; }
    .hero p { margin: 0 auto 3rem; }
    .hero-cta { justify-content: center; }
    .hero-visual { width: 100%; margin-top: 4rem; }
    .hero-visual img { width: 100%; transform: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links { display: none; }
    .nav-btns { display: none; }
    .menu-toggle { display: flex; }
    
    .hero h1 { font-size: 3.5rem; }
    .section-head h2 { font-size: 2.5rem; }
    .cta-card h2 { font-size: 3rem; }
    .cta-card { padding: 3rem 1.5rem; }
}

@media (max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }
}

@media (max-width: 420px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 0.95rem; }
    .hero-cta { flex-direction: column; width: 100%; gap: 12px; }
    .btn { width: 100%; text-align: center; justify-content: center; }
    .trust-logos { gap: 1.5rem; }
    .stat-number { font-size: 2.5rem; }
    .cta-card h2 { font-size: 2.2rem; }
}
