:root {
    --primary: #a4c639;
    --primary-dark: #8eb02f;
    --accent: #f59e0b;
    --bg-dark: #071324;
    --bg-light: #0f172a;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* --- Header --- */
header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    background: rgba(7, 19, 36, 0.8);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.golden-fish-logo {
    height: 72px; /* make the fish stand out */
    width: auto;
    mix-blend-mode: screen; /* Remove dark background and blend water splashes */
    filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.4)); /* subtle golden glow */
    transition: transform 0.3s ease, filter 0.3s ease;
    margin-top: -12px; /* Pull it slightly out of bounds for dynamic look */
    margin-bottom: -12px;
}

.logo:hover .golden-fish-logo {
    transform: scale(1.1) translateY(-3px);
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.7));
}

.golden-fish-logo-footer {
    height: 48px;
    width: auto;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.3));
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn-login {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s, background 0.3s;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* --- Hero --- */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/landing_hero.png') center/cover no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(7, 19, 36, 0.5), var(--bg-dark));
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

/* --- Features --- */
.features {
    padding: 100px 0;
    background: var(--bg-dark);
}

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

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

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

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

.feature-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: var(--radius);
    transition: transform 0.3s, border-color 0.3s;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(164, 198, 57, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

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

/* --- CTA --- */
.cta {
    padding: 100px 0;
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, var(--bg-light), #1e293b);
    padding: 80px 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.cta-box::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.1;
}

/* --- Footer --- */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-dark);
}

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

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 99px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: #0c1202;
    box-shadow: 0 10px 20px rgba(164, 198, 57, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(164, 198, 57, 0.4);
}

.btn-outline {
    border: 2px solid var(--border);
    color: white;
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Optimization (< 768px) */
@media (max-width: 768px) {
    .nav-links { display: none !important; }
    .hero-actions { flex-direction: column; }
    .hero-title { font-size: 2.8rem; }
    
    .mobile-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: rgba(7, 19, 36, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid var(--border);
        z-index: 2000;
        justify-content: space-around;
        align-items: center;
        padding: 0 10px;
    }

    .mobile-nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.75rem;
        font-weight: 600;
        transition: 0.3s;
    }

    .mobile-nav-link i {
        width: 24px;
        height: 24px;
    }

    .mobile-nav-link.active {
        color: var(--primary);
    }

    /* Adjust page padding for bottom nav */
    body {
        padding-bottom: 80px;
    }
}

/* Hidden by default on desktop */
.mobile-nav {
    display: none;
}

/* Legal Modals */
.modal-overlay-legal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content-legal {
    background: #1a2433;
    width: 90%;
    max-width: 600px;
    max-height: 80%;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    color: #fff;
}

.modal-header-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.modal-header-legal h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary);
}

.modal-header-legal button {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body-legal h3 {
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
    color: #fff;
}

.modal-body-legal p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 10px;
}

/* --- Live Bissprognose Feature Card --- */
.bite-forecast-card {
    display: flex;
    flex-direction: column;
    min-height: 380px;
    justify-content: flex-start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bite-forecast-card .feature-card-desc {
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.btn-bite-calc {
    background: rgba(164, 198, 57, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    outline: none;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
}

.btn-bite-calc:hover {
    background: var(--primary);
    color: #0c1202;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(164, 198, 57, 0.2);
}

.bite-forecast-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    gap: 16px;
    color: var(--text-muted);
    padding: 40px 0;
}

.bite-forecast-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: biteSpin 1s infinite linear;
}

@keyframes biteSpin {
    to { transform: rotate(360deg); }
}

.bite-forecast-result {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    animation: fadeIn 0.4s ease-out;
}

.bite-score-gauge-container {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 12px;
}

.bite-score-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    transition: all 0.5s ease;
}

.bite-score-circle.score-excellent { border-color: #22c55e; box-shadow: 0 0 15px rgba(34, 197, 94, 0.3); }
.bite-score-circle.score-good { border-color: var(--primary); box-shadow: 0 0 15px rgba(164, 198, 57, 0.3); }
.bite-score-circle.score-moderate { border-color: var(--accent); box-shadow: 0 0 15px rgba(245, 158, 11, 0.3); }
.bite-score-circle.score-poor { border-color: #ef4444; box-shadow: 0 0 15px rgba(239, 68, 68, 0.3); }

.bite-score-value {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
}

.bite-score-max {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.bite-score-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

.bite-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bite-detail-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 10px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.bite-detail-item .bite-detail-icon {
    color: var(--primary);
    display: flex;
    align-items: center;
}

.bite-detail-item .bite-detail-icon i {
    width: 16px;
    height: 16px;
}

.bite-detail-item span:last-child {
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bite-cta-wrapper {
    margin-top: 10px;
}

.btn-bite-cta {
    background: var(--primary);
    color: #0c1202;
    padding: 12px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(164, 198, 57, 0.2);
}

.btn-bite-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(164, 198, 57, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Split Hero Layout --- */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    width: 100%;
    z-index: 10;
}

.hero-content-left {
    flex: 1.2;
    text-align: left;
    animation: fadeInUp 1s ease-out;
}

.hero-content-right {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    max-width: 440px;
    animation: fadeInUp 1s ease-out;
}

/* Glassmorphism widget style */
.hero-bite-card {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
    border-radius: var(--radius) !important;
    padding: 32px !important;
    width: 100%;
}

/* Mobile responsive split layout */
@media (max-width: 992px) {
    .hero {
        height: auto !important;
        min-height: 100vh;
        padding-top: 120px;
        padding-bottom: 60px;
        display: flex;
        align-items: center;
    }
    .hero-container {
        flex-direction: column !important;
        gap: 48px !important;
        text-align: center;
    }
    .hero-content-left {
        text-align: center !important;
    }
    .hero-actions {
        justify-content: center !important;
    }
    .hero-content-right {
        margin: 0 auto !important;
        justify-content: center !important;
    }
}

/* --- Target Fish Selector & Refresh Styles --- */
.btn-bite-refresh {
    background: rgba(164, 198, 57, 0.05);
    border: 1px solid rgba(164, 198, 57, 0.15);
    color: var(--primary);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    outline: none;
}

.btn-bite-refresh:hover {
    background: rgba(164, 198, 57, 0.15);
    border-color: var(--primary);
    transform: scale(1.02);
}

.btn-bite-refresh:active {
    transform: scale(0.98);
}

.bite-target-fish-section {
    margin-top: 8px;
    width: 100%;
    animation: fadeIn 0.4s ease-out;
}

.bite-selector-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.bite-fish-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
}

.bite-fish-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    padding: 8px 4px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.bite-fish-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.bite-fish-pill.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #0c1202;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(164, 198, 57, 0.25);
    font-weight: 700;
}

.bite-fish-pill[data-value="all"] {
    grid-column: span 2;
}

@keyframes bitePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(164, 198, 57, 0.4); }
    50% { transform: scale(1.04); box-shadow: 0 0 15px 4px rgba(164, 198, 57, 0.2); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(164, 198, 57, 0); }
}

.bite-pulse {
    animation: bitePulse 0.4s ease-out;
}



