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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    padding-top: 70px; /* Account for fixed header height */
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}

.logo span {
    color: #1a1a2e;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #1a1a2e;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-login {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-login:hover {
    color: #1a1a2e;
}

.cta-button {
    background: #1a1a2e;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(26, 26, 46, 0.3);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #1a1a2e;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    max-height: 100vh;
    background: white;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    padding: 6rem 2rem 2rem;
    transition: top 0.4s ease;
    z-index: 999;
    overflow-y: auto;
}

.mobile-menu.active {
    top: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    margin-bottom: 2rem;
}

.mobile-nav-links li {
    margin-bottom: 1.5rem;
}

.mobile-nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
    color: #1a1a2e;
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.btn-login {
    background: white;
    color: #1a1a2e;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    border: 2px solid #1a1a2e;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #1a1a2e;
    color: white;
}

.btn-register {
    background: #1a1a2e;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.2);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(26, 26, 46, 0.3);
}

/* Hero Section */
.hero {
    margin-top: 0;
    padding: 2rem 2rem 4rem;
    background: linear-gradient(135deg, #f8faf9 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 26, 46, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-text .highlight {
    color: #1a1a2e;
}

.hero-text p {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: #1a1a2e;
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(26, 26, 46, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(26, 26, 46, 0.35);
}

.btn-secondary {
    background: white;
    color: #1a1a2e;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid #1a1a2e;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #1a1a2e;
    color: white;
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Main Score Card */
.main-card {
    position: absolute;
    width: 380px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.score-display {
    background: #1a1a2e;
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.score-display::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.score-display h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    position: relative;
}

.match-score {
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 3.5rem;
    font-weight: 800;
    position: relative;
}

.player-name {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Stats Card - Top Right */
.stats-card {
    position: absolute;
    top: 50px;
    right: -50px;
    width: 220px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    z-index: 2;
    animation: floatReverse 5s ease-in-out infinite;
}

.stats-card h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
}

/* Leaderboard Card - Bottom Left */
.leaderboard-card {
    position: absolute;
    bottom: 40px;
    left: -60px;
    width: 240px;
    background: #1a1a2e;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(26, 26, 46, 0.3);
    padding: 1.5rem;
    color: white;
    z-index: 1;
    animation: float 7s ease-in-out infinite;
}

.leaderboard-card h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.leader-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.leader-rank {
    font-weight: 700;
    opacity: 0.7;
    width: 25px;
}

.leader-name {
    flex: 1;
}

.leader-score {
    font-weight: 700;
}

/* Notification Badge - Top Left */
.notification-badge {
    position: absolute;
    top: 100px;
    left: -40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.5rem;
    z-index: 4;
    animation: pulse 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1a1a2e 0%, #f4d03f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.notification-text {
    font-size: 0.85rem;
}

.notification-text strong {
    display: block;
    color: #1a1a1a;
    font-weight: 700;
}

.notification-text span {
    color: #666;
    font-size: 0.75rem;
}

/* Decorative Elements */
.hero-visual::after {
    content: '🎱';
    position: absolute;
    font-size: 4rem;
    opacity: 0.1;
    top: 20%;
    right: 5%;
    animation: floatReverse 8s ease-in-out infinite;
}

.hero-visual::before {
    content: '🎱';
    position: absolute;
    font-size: 3rem;
    opacity: 0.08;
    bottom: 15%;
    left: 8%;
    animation: float 9s ease-in-out infinite;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: white;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    padding: 2rem;
    background: #f8faf9;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-color: #1a1a2e;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #1a1a2e;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.2);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

/* Benefits Section */
.benefits {
    padding: 6rem 2rem;
    background: #1a1a2e;
    color: white;
}

.benefits-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-text h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.check-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    background: #f8faf9;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.footer-brand p {
    color: #999;
    line-height: 1.8;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: #1a1a2e;
}

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

.footer-links a {
    color: #999;
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #333;
    text-align: center;
    color: #999;
}

/* Responsive Design */
@media (max-width: 968px) {
    body {
        padding-top: 70px; /* Slightly less padding for tablet */
    }

    .nav-right {
        display: none;
    }

    .hamburger {
        display: flex;
    }

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

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

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
        height: 400px;
        margin-bottom: 2rem;
    }

    .main-card {
        width: 320px;
        padding: 1.5rem;
        position: relative;
        left: 0;
        right: 0;
        margin: 0 auto;
    }

    .stats-card {
        right: -10px;
        top: 30px;
        width: 180px;
        padding: 1rem;
    }

    .leaderboard-card {
        left: -10px;
        bottom: 20px;
        width: 200px;
        padding: 1rem;
    }

    .notification-badge {
        left: 50%;
        transform: translateX(-50%);
        top: -30px;
        padding: 0.75rem 1rem;
    }

    .hero-visual::after,
    .hero-visual::before {
        display: none;
    }

    .benefits-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    body {
        padding-top: 60px; /* Less padding for mobile due to smaller nav */
    }

    footer {
        display: none;
    }

    nav {
        padding: 1rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .hero {
        padding: 1.5rem 1rem 2rem;
    }

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

    .hero-text p {
        font-size: 1rem;
    }

    .hero-visual {
        height: 350px;
    }

    .main-card {
        width: 280px;
        padding: 1.2rem;
    }

    .match-score {
        font-size: 2.5rem;
    }

    .stats-card {
        width: 160px;
        right: -5px;
        padding: 0.75rem;
    }

    .stat-item {
        padding: 0.5rem 0;
    }

    .leaderboard-card {
        width: 180px;
        left: -5px;
        padding: 0.75rem;
    }

    .notification-badge {
        padding: 0.6rem 0.8rem;
        gap: 0.75rem;
    }

    .notification-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .notification-text {
        font-size: 0.75rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Authentication Pages */
.auth-section {
    margin-top: 0;
    padding: 2rem 2rem;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #f8faf9 0%, #ffffff 100%);
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.auth-container-single {
    max-width: 500px;
    margin: 0 auto;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #666;
    font-size: 1.1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #1a1a2e;
    box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.1);
}

.password-requirements {
    margin-top: 0.5rem;
}

.password-requirements small {
    color: #666;
    font-size: 0.85rem;
}

.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    color: #666;
}

.checkbox-label a {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #c33;
}

.success-message {
    background: #efe;
    color: #3c3;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3c3;
}

.btn-submit {
    background: #1a1a2e;
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(26, 26, 46, 0.25);
    margin-top: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(26, 26, 46, 0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.auth-footer p {
    color: #666;
}

.auth-footer a {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Auth Visual Sidebar */
.auth-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-highlight {
    background: #1a1a2e;
    color: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(26, 26, 46, 0.3);
}

.highlight-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-highlight h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.highlight-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.highlight-check {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
}

/* Responsive Auth Pages */
@media (max-width: 968px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .auth-visual {
        order: -1;
    }

    .feature-highlight {
        padding: 2rem;
    }

    .auth-card {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .auth-section {
        padding: 2rem 1rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .auth-header h1 {
        font-size: 2rem;
    }

    .auth-header p {
        font-size: 1rem;
    }

    .feature-highlight {
        padding: 1.5rem;
    }

    .highlight-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .feature-highlight h3 {
        font-size: 1.5rem;
    }

    .highlight-list li {
        font-size: 1rem;
    }
}
