:root {
    /* Base Colors */
    --bg-color: #FCFCFC; /* Slightly warmer off-white */
    --text-main: #2C2C2C;
    --text-muted: #666666;
    /* Accents */
    --accent: #2E4C40; /* Nordic Deep Green */
    --accent-soft: rgba(46, 76, 64, 0.08); /* Very light green for shapes */
    --accent-grey: #F2F4F6; /* Cool light grey for shapes */
    --border: #EAEAEA;
    /* Layout */
    --spacing: 2rem;
    --max-width: 960px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from absolute shapes */
}

/* Typography */
h1, h2, h3, h4, h3 a {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-main);
    text-decoration: none;
}

h1 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* SCANDINAVIAN SHAPES - The background ambiance */
.shape-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.scandi-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.7;
}

/* Shape variations */
.shape-1 {
    top: -10%;
    left: 60%;
    width: 500px;
    height: 500px;
    background: var(--accent-soft);
    border-radius: 40% 60% 70% 30% / 50% 60% 40% 50%; /* Organic blob math */
}

.shape-2 {
    top: 30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--accent-grey);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.shape-3 {
    bottom: 10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: var(--accent-soft);
    border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
}


/* Navigation */
nav {
    position: sticky;
    top: 0;
    background: rgba(252, 252, 252, 0.9); /* Semi-transparent */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent; /* Removed harsh border */
    padding: 1.2rem 0;
    z-index: 100;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links a {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 2.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    text-decoration: none;
}

    /* Minimalist underline indicator */
    .nav-links a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 0;
        background-color: var(--accent);
        transition: width 0.3s ease;
    }

    .nav-links a:hover, .nav-links a.active {
        color: var(--text-main);
    }

        .nav-links a.active::after {
            width: 100%;
        }

/* Layout */
main {
    max-width: var(--max-width);
    margin: 5rem auto;
    padding: 0 var(--spacing);
    min-height: 80vh;
    position: relative;
}

.page-section {
    animation: fadeIn 0.5s ease-out;
}

    .page-section.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Components */
.hero {
    margin-bottom: 5rem;
    position: relative;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.9rem 1.8rem;
    text-decoration: none;
    border-radius: 6px; /* Softer corners */
    font-weight: 500;
    transition: transform 0.2s, opacity 0.2s;
    border: none;
}

    .btn:hover {
        opacity: 0.95;
        transform: translateY(-1px);
    }

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-main);
    margin-left: 1rem;
}

    .btn-outline:hover {
        border-color: var(--text-muted);
    }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.card {
    background: white;
    padding: 2.5rem;
    /* Soft scandi shadow instead of hard border */
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        box-shadow: 0 8px 30px rgba(0,0,0,0.05);
        transform: translateY(-3px);
    }

.tag {
    display: inline-block;
    background: var(--accent-grey);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px; /* Pill shape */
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Minimalist Stats */
.stats-row {
    display: flex;
    gap: 4rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0;
}

.stat-item span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Tech Specifics */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

    .comparison-table th {
        text-align: left;
        padding: 1.2rem;
        background: var(--accent-grey);
        color: var(--text-main);
        font-weight: 600;
    }

    .comparison-table td {
        padding: 1.2rem;
        border-bottom: 1px solid var(--border);
        color: var(--text-muted);
        vertical-align: top;
    }

    .comparison-table tr:last-child td {
        border-bottom: none;
    }

pre {
    background: #23272e; /* Slightly warmer dark mode */
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.code-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.8rem;
    display: block;
    font-weight: 700;
}

/* Contact Form */
.contact-form {
    max-width: 560px;
}

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
        color: var(--text-main);
    }

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .form-control:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 2px 12px rgba(46, 76, 64, 0.08);
    }

    .form-control::placeholder {
        color: #BBBBBB;
    }

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.validation-message {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #C0392B;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(46, 76, 64, 0.08);
    color: var(--accent);
    border: 1px solid rgba(46, 76, 64, 0.15);
}

.alert-error {
    background: rgba(192, 57, 43, 0.06);
    color: #C0392B;
    border: 1px solid rgba(192, 57, 43, 0.12);
}

/* Footer */
footer {
    margin-top: 8rem;
    padding: 4rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
}

    /* Decorative subtle line for footer */
    footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: var(--accent-grey);
        border-radius: 3px;
    }
