/* --- CSS VARIABLES & RESET --- */
:root {
    --bg-dark: #050814;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --border-color: rgba(255, 255, 255, 0.1);
    
    --primary: #00F0FF; /* Neon Blue */
    --accent: #FF0055;  /* Neon Red */
    
    --text-main: #FFFFFF;
    --text-muted: #9CA3AF;
    --text-dark: #1F2937;
    
    --gradient-primary: linear-gradient(135deg, #00F0FF 0%, #0047FF 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.15) 0%, transparent 50%);
    
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.2);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
    
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.section-padding { padding: 120px 0; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-main);
    box-shadow: 0 10px 25px rgba(0, 114, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 114, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.05);
    transform: translateY(-3px);
}

/* Base Badge */
.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: rgba(5, 8, 20, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo img {
    height: 38px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

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

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding: 200px 0 120px;
    overflow: hidden;
}

/* Glower effect in the background */
.hero::after {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 800px; height: 800px;
    background: var(--gradient-glow);
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
}

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

.hero-text h1 {
    font-size: 4.5rem;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

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

.phone-mockup {
    width: 320px;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 8px #1A1C29;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.6s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.phone-mockup:hover {
    transform: rotateY(-5deg) rotateX(0deg) scale(1.02);
}

/* --- FEATURES SECTION --- */
.features {
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 80px;
}

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

.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius-lg);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(0,240,255,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.3);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-subtle);
}

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

.icon-box {
    width: 60px; height: 60px;
    border-radius: var(--radius-md);
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
}

/* --- APP DEMO SHOWCASE --- */
.demo-section {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.01);
}

.demo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
    margin-top: 50px;
}

.demo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 15px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-subtle);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    position: relative;
    max-width: 300px;
    width: 100%;
}

.demo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.4);
}

.demo-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,240,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.demo-card:hover::after {
    opacity: 1;
}

.demo-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
    border: 1px solid rgba(255,255,255,0.05);
}

/* --- LOGO ROTATOR / STATS STRIP --- */
.stats-strip {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(0,0,0,0.3);
    padding: 60px 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-item p {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* --- DOWNLOAD CTA --- */
.download-section {
    background: radial-gradient(circle at center, rgba(0, 71, 255, 0.15) 0%, transparent 60%);
    text-align: center;
    position: relative;
}

.download-content {
    max-width: 700px;
    margin: 0 auto;
}

.download-content h2 {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.download-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 12px 32px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.store-btn:hover {
    background: #222;
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.3);
}

.store-icon { font-size: 2rem; color: #fff; }
.store-text { text-align: left; }
.store-text span { display: block; font-size: 0.75rem; color: #aaa; text-transform: uppercase; }
.store-text strong { font-size: 1.25rem; color: #fff; line-height: 1; }

/* --- FOOTER --- */
footer {
    background: #02040A;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 350px;
    font-size: 0.95rem;
}

.footer-heading {
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
    .phone-mockup { margin-top: 50px; transform: rotateY(0) rotateX(0); }
    .phone-mockup:hover { transform: translateY(-10px); }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-brand { text-align: center; }
    .footer-brand p { margin: 0 auto; }
}

@media (max-width: 768px) {
    .hero-text h1 { font-size: 3rem; }
    .nav-links { display: none; } /* Mobile menu needed ideally */
    
    .analysis-container { padding: 30px; }
    .match-header { flex-direction: column; gap: 30px; }
    .match-vs { text-align: center; }
    
    .prediction-board { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* --- ANIMATIONS CLASSES --- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
