:root {
    --bg: #f6f1f1;
    --panel: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;

    --primary: #e07a7a;
    --primary-dark: #c85d5d;

    --border: rgba(0,0,0,0.08);
    --shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ===== GLOBAL FIX ===== */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 🔥 viktigere enn clip her */
    width: 100%;
}

/* ===== BODY ===== */
body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: linear-gradient(180deg, #faf7f7, #f3eded);
    color: var(--text);
}

/* ===== HEADER ===== */
header {
    width: 100%;
    padding: 18px 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;

    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);

    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

/* ===== NAV ===== */
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

nav a {
    color: var(--muted);
    text-decoration: none;

    font-size: 14px;
    padding: 8px 10px;
    border-radius: 10px;

    transition: 0.2s ease;
}

nav a:hover {
    color: var(--text);
    background: rgba(224, 122, 122, 0.12);
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 90px 20px;

    max-width: 100%;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 12px;
    font-weight: 700;
}

.hero p {
    font-size: 16px;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BUTTON ===== */
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    margin-top: 30px;
    padding: 12px 24px;

    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;

    text-decoration: none;
    border-radius: 14px;
    box-shadow: 0 6px 14px rgba(224,122,122,0.25);

    transition: 0.2s ease;
    font-weight: 500;

    max-width: 100%;
}

.button:hover {
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: var(--muted);
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        margin-top: 10px;
    }

    nav a {
        font-size: 13px;
        padding: 8px 10px;
    }

    .hero {
        padding: 60px 15px;
    }

    .hero h2 {
        font-size: 26px;
    }

    .hero p {
        font-size: 14px;
    }

    .button {
        width: 100%;
    }
}
