/* Referee Pro — Promo Website Styles */
/* Theme: Tech/Gaming dark with app-extracted palette */

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

:root {
    --color-primary: #3DB35A;
    --color-primary-dark: #1B5E35;
    --color-accent: #F5C518;
    --color-bg: #0F1923;
    --color-bg-lighter: #142230;
    --color-surface: #1A2733;
    --color-surface-hover: #223442;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #A0ADB8;
    --color-text-muted: #5F7A8F;
    --color-success: #27AE60;
    --color-error: #E74C3C;
    --color-border: rgba(61, 179, 90, 0.15);
    --border-radius: 10px;
    --font-family: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 25, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all 0.3s ease;
    display: block;
}

/* ===== MAIN CONTAINER ===== */
.main-content {
    padding-top: 64px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-lighter) 50%, var(--color-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(61, 179, 90, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-content h1 .highlight {
    color: var(--color-primary);
}

.hero-content .hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    max-width: 480px;
    line-height: 1.7;
}

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

.hero-device {
    flex-shrink: 0;
    width: 280px;
}

.device-mockup {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.device-frame {
    position: relative;
    padding: 12px;
    background: linear-gradient(145deg, #2a3a4a, #1a2a3a);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}

.device-frame img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

.device-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: #1a2a3a;
    border-radius: 0 0 8px 8px;
    z-index: 2;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-family);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    text-align: center;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #4FCC6E, var(--color-primary));
    color: #fff;
    box-shadow: 0 4px 18px rgba(61, 179, 90, 0.4);
    border: 1px solid rgba(79, 204, 110, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(61, 179, 90, 0.55);
    color: #fff;
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text-primary);
    border: 1px solid rgba(61, 179, 90, 0.35);
}

.btn-secondary:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-primary);
    color: var(--color-text-primary);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent), #d4a800);
    color: #0F1923;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(245, 197, 24, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 197, 24, 0.45);
    color: #0F1923;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-bottom: 60px;
}

.feature-block:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-icon-box {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

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

.feature-text h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-text p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===== SCREENSHOTS SECTION ===== */
.screenshots-section {
    padding: 60px 0;
    max-height: 520px;
    overflow: hidden;
    background: var(--color-bg-lighter);
}

.carousel-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    height: 380px;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.carousel-slide .device-frame {
    max-width: 280px;
}

.carousel-slide .device-frame img {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.carousel-slide .device-frame img.loaded {
    filter: blur(0);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

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

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-muted);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 4px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

/* ===== FOOTER ===== */
.footer {
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

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

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-copy {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ===== LEGAL PAGES (Privacy, Terms) ===== */
.legal-page {
    padding: 80px 0 60px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 40px;
}

.legal-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.legal-content .legal-date {
    color: var(--color-text-muted);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.legal-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
}

.legal-content p {
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
    text-align: left;
}

.legal-content ul {
    color: var(--color-text-secondary);
    margin: 8px 0 16px 24px;
    text-align: left;
}

.legal-content li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.legal-content a {
    color: var(--color-primary);
    word-break: break-word;
}

/* ===== CONTACT PAGE ===== */
.contact-section {
    padding: 80px 0 60px;
    min-height: calc(100vh - 64px - 73px);
    display: flex;
    align-items: center;
}

.contact-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 40px;
}

.contact-card h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-card .contact-desc {
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: var(--color-text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
    background: var(--color-surface-hover);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 6px 12px;
    margin-right: 12px;
    cursor: pointer;
    font-family: var(--font-family);
}

.form-success {
    display: none;
    padding: 16px;
    background: rgba(61, 179, 90, 0.1);
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius);
    color: var(--color-primary);
    text-align: center;
    margin-top: 16px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

/* ===== PRIVACY ACCEPT BUTTON ===== */
.privacy-accept-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    padding: 16px 24px 24px;
    background: linear-gradient(to top, var(--color-bg) 60%, transparent);
    display: flex;
    justify-content: center;
}

.privacy-accept-btn.hidden {
    display: none;
}

.accept-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(61, 179, 90, 0.4);
    transition: all 0.25s ease;
    text-align: center;
    font-family: var(--font-family);
}

.accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(61, 179, 90, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(15, 25, 35, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero {
        padding: 48px 0 40px;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-device {
        width: 220px;
    }

    .feature-block,
    .feature-block:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

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

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

    .legal-content,
    .contact-card {
        padding: 24px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .screenshots-section {
        max-height: 440px;
    }

    .carousel-wrapper {
        height: 320px;
    }

    .carousel-slide .device-frame {
        max-width: 200px;
    }

    .legal-content p,
    .legal-content li {
        line-height: 1.8;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .hero-device {
        width: 180px;
    }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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