﻿:root {
    --bg-color: #0d1117;
    --card-color: #161b22;
    --text-color: #e6edf3;
    --primary-action: #2ea043;
    --secondary-action: #444c56;
    --border-color: #30363d;
    --font-family: 'Roboto', sans-serif;
    --border-radius: 6px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    background-image: radial-gradient(circle at top left, #293846, transparent 50%), radial-gradient(circle at bottom right, #1f2b38, transparent 50%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    scroll-behavior: smooth;
}

/* ----- Global styles ----- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s;
    border: 1px solid var(--border-color);
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-action);
    color: var(--text-color);
}

    .btn-primary:hover {
        background-color: #267f37;
    }

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

    .btn-secondary:hover {
        background-color: var(--secondary-action);
    }

.btn.pricing-byollm-btn {
    background-color: #58a6ff;
    border-color: #58a6ff;
}

    .btn.pricing-byollm-btn:hover {
        background-color: #448ccf;
        border-color: #448ccf;
    }


h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.beta-badge {
    background-color: #f7a01f;
    color: black;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

section {
    padding: 4rem 0;
}

/* ----- Header/Navbar ----- */
.header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

    .nav-links a {
        color: var(--text-color);
        text-decoration: none;
        font-weight: bold;
        transition: color 0.2s;
        cursor: pointer;
    }

        .nav-links a:hover {
            color: #58a6ff;
        }

/* Ny style til burgermenu */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger-bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}


/* ----- Hero Section ----- */
.hero {
    padding: 6rem 0;
}

    .hero .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero h1 {
        font-size: 3.5rem;
        margin-bottom: 1rem;
        color: var(--text-color);
    }

    .hero p {
        font-size: 1.25rem;
        margin-bottom: 2rem;
        max-width: 800px;
        margin: 0 auto 2rem auto;
    }

    .hero .btn-group {
        display: flex;
        gap: 1rem;
    }

/* ----- What is ChatDBQ Section (new) ----- */
.what-is-chatdbq-section {
    padding: 4rem 0;
    text-align: center;
}

    .what-is-chatdbq-section .description-box {
        max-width: 800px;
        margin: 0 auto 3rem auto;
    }

        .what-is-chatdbq-section .description-box p {
            font-size: 1.25rem;
            color: #aebcbf;
        }

.core-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.core-feature-item {
    background: var(--card-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: left;
    transition: transform 0.2s, border-color 0.2s;
}

    .core-feature-item:hover {
        transform: translateY(-5px);
        border-color: #58a6ff;
    }

    .core-feature-item h3 {
        margin: 0 0 0.5rem 0;
        font-size: 1.5rem;
    }

/* ----- Features Section (revised) ----- */
.features-list {
    padding: 4rem 0;
    text-align: center;
}

    .features-list .feature-item-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        margin-top: 2rem;
    }

    .features-list .list-item {
        background: var(--card-color);
        padding: 2rem;
        border-radius: var(--border-radius);
        border: 1px solid var(--border-color);
        text-align: left;
        transition: transform 0.2s, border-color 0.2s;
    }

        .features-list .list-item:hover {
            transform: translateY(-5px);
            border-color: #58a6ff;
        }

        .features-list .list-item h3 {
            margin: 0 0 0.5rem 0;
            font-size: 1.5rem;
        }


.list-item.highlighted {
    background-color: #2e4d35;
    border-color: var(--primary-action);
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(46, 160, 67, 0.4);
}

/* ----- Pricing Section ----- */
.pricing {
    background-color: transparent;
    text-align: center;
}

/* OPPDATERET */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--card-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, border-color 0.2s, background-color 0.2s;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .pricing-card:hover {
        transform: translateY(-5px);
    }

    .pricing-card h3 {
        color: var(--text-color);
        font-size: 2rem;
        margin-top: 0;
        min-height: 2.5rem;
        line-height: 1.2;
    }

    .pricing-card p:first-of-type {
        min-height: 3rem;
        margin-bottom: 1rem;
    }

    .pricing-card .price {
        font-size: 2.5rem;
        font-weight: bold;
        color: var(--text-color);
        margin: 0rem 0 1rem 0;
        min-height: 3.5rem;
        white-space: nowrap;
    }

    .pricing-card ul {
        list-style: none;
        padding: 0;
        text-align: left;
        margin-bottom: 2rem;
        flex-grow: 1;
    }

    .pricing-card li {
        margin-bottom: 0.5rem;
        padding-left: 1.5rem;
        position: relative;
        color: var(--text-color);
    }

        .pricing-card li::before {
            content: "✓";
            color: var(--primary-action);
            position: absolute;
            left: 0;
            font-weight: bold;
        }

    .pricing-card.highlighted-blue {
        background-color: #1e2831;
        border-color: #58a6ff;
        transform: scale(1.03);
        box-shadow: 0 4px 15px rgba(88, 166, 255, 0.2);
    }

        .pricing-card.highlighted-blue li::before {
            color: #58a6ff;
        }

.pricing-info-box {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 3rem;
    text-align: left;
}

    .pricing-info-box h4 {
        color: var(--text-color);
        font-size: 1.2rem;
        margin-top: 0;
    }

/* ----- Footer ----- */
.footer {
    background-color: var(--card-color);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
}

    .footer .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.2s;
}

    .footer-links a:hover {
        color: #58a6ff;
    }

.footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* ----- Modal/Flyout styles ----- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--card-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--text-color);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

    .close-btn:hover {
        color: #ff6347;
    }

/* Form styles inside the modal */
.modal-content h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: bold;
    }

    .form-group input {
        width: 100%;
        padding: 0.8rem;
        box-sizing: border-box;
        border: 1px solid var(--border-color);
        background-color: var(--bg-color);
        color: var(--text-color);
        border-radius: var(--border-radius);
    }

.btn-form-submit {
    width: 100%;
    margin-top: 1rem;
}

.switch-form {
    text-align: center;
    margin-top: 1rem;
}

    .switch-form a {
        color: #58a6ff;
        text-decoration: none;
        cursor: pointer;
    }

.hidden-form {
    display: none;
}

.visible-form {
    display: block;
}

.hidden {
    display: none;
}

/* ----- Responsivitet til mobil ----- */
@@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        border-top: 1px solid var(--border-color);
        padding: 1rem 0;
        gap: 0;
    }

        .nav-links.active {
            display: flex;
        }


    .burger-menu {
        display: flex;
    }

    .burger-menu.active .burger-bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger-menu.active .burger-bar:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active .burger-bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}
