:root {
    --bg-primary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #E64A19;
    /* Deep Orange for "Füme" background compatibility */
    --accent-glow: rgba(230, 74, 25, 0.4);
    --card-bg: #141414;
    --card-border: #333333;
    --font-heading: sans-serif;
    --font-body: sans-serif;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --text-primary: #121212;
    --text-secondary: #555555;
    --accent: #E64A19;
    --accent-glow: rgba(230, 74, 25, 0.15);
    --card-bg: #f5f5f5;
    --card-border: #e0e0e0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Dynamic Background */
.basketball-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, var(--accent-glow) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    z-index: -2;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
    /* Ensure full logo is visible */
    background: #222;
    /* Fallback background */
    border: 2px solid var(--accent);
}

.app-bar-logo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: contain;
    background: #000;
    border: 1px solid var(--accent);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.highlight {
    color: var(--accent);
}

.theme-btn {
    background: none;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.theme-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.text-content {
    max-width: 600px;
}

.badge {
    background: rgba(230, 74, 25, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(230, 74, 25, 0.2);
}

h1 {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.outline-text {
    -webkit-text-stroke: 1px var(--text-primary);
    color: transparent;
}

.subheadline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

/* Buttons */
.download-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.store-btn.ios {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.store-btn.android {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
}

.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-text {
    display: flex;
    flex-direction: column;
    font-size: 0.7rem;
    line-height: 1.2;
}

.btn-text strong {
    font-size: 1rem;
    font-weight: 600;
}

.store-btn i {
    font-size: 1.8rem;
}

/* Stats */
.stats-row {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--card-border);
    padding-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-primary);
}

.stat span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Visual / Mockup */
.visual-content {
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}

/* Improved Smartphone Mockup */
.smartphone {
    position: relative;
    width: 320px;
    height: 650px;
    background: #000;
    border-radius: 45px;
    border: 12px solid #1a1a1a;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    z-index: 2;
}

.smartphone:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.camera-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #1a1a1a;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

.screen-content {
    background: #0a0a0a;
    width: 100%;
    height: 100%;
    padding-top: 35px;
    display: flex;
    flex-direction: column;
}

/* App UI Simulation */
.app-simulation {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.app-bar-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--accent);
}

.app-simulation i {
    color: #fff;
    font-size: 1.2rem;
}

.app-hero-card {
    background: linear-gradient(135deg, #1e1e1e, #111);
    margin: 15px;
    padding: 20px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid #333;
}

.app-hero-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: var(--accent);
    filter: blur(60px);
    opacity: 0.15;
}

.live-tag {
    background: var(--accent);
    color: #fff;
    padding: 2px 8px;
    font-size: 0.6rem;
    font-weight: 800;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.app-hero-card h3 {
    font-size: 1.4rem;
    line-height: 1.2;
    margin-bottom: 5px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    color: #fff;
}

.app-hero-card p {
    font-size: 0.8rem;
    color: #aaa;
}

.app-section-title {
    padding: 0 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.news-item {
    display: flex;
    gap: 15px;
    padding: 10px 20px;
    border-bottom: 1px solid #1a1a1a;
}

.news-thumb {
    width: 60px;
    height: 60px;
    background: #252525;
    border-radius: 12px;
    flex-shrink: 0;
}

.news-info h4 {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 4px;
    font-weight: 600;
}

.news-info span {
    font-size: 0.7rem;
    color: #666;
}

.app-tab-bar {
    margin-top: auto;
    background: #000;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    border-top: 1px solid #222;
    position: relative;
    height: 80px;
}

.fab-btn {
    width: 70px;
    height: 70px;
    background: #FF5722;
    /* Pure Orange */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 25px rgba(255, 87, 34, 0.6);
    border: 6px solid #000;
    /* Thicker dark border to blend with notch if needed */
    position: absolute;
    top: -35px;
    /* Pull it up significantly */
    animation: bounce 2s infinite ease-in-out;
    z-index: 20;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.fab-btn i {
    color: #fff;
    font-size: 2.2rem;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 3rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--card-border);
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.links {
    display: flex;
    gap: 2rem;
}

.links a {
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
}

.links a:hover {
    color: var(--accent);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: var(--accent);
}

.modal-body {
    padding: 30px;
    color: var(--text-primary);
    line-height: 1.8;
    max-height: 70vh;
    overflow-y: auto;
    font-size: 1rem;
    white-space: pre-wrap;
    /* Respect line breaks */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    h1 {
        font-size: 3.5rem;
    }

    .text-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .stats-row {
        justify-content: center;
        gap: 1.5rem;
    }

    .download-buttons {
        justify-content: center;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .smartphone {
        transform: none;
        margin: 0 auto;
    }

    footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}