/* ================================
   NORDIC HAVEN
   Main stylesheet
   ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --background: #080b10;
    --surface: rgba(18, 23, 31, 0.82);
    --surface-hover: rgba(27, 34, 45, 0.95);

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);

    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent: #7dd3fc;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    background: var(--background);

    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    overflow-x: hidden;
}


/* ================================
   BACKGROUND
   ================================ */

.background {
    position: fixed;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(125, 211, 252, 0.10),
            transparent 40%
        ),

        radial-gradient(
            circle at 100% 100%,
            rgba(59, 130, 246, 0.06),
            transparent 35%
        );
}


/* ================================
   MAIN CONTAINER
   ================================ */

.container {
    position: relative;

    width: min(1050px, calc(100% - 40px));

    margin: 0 auto;

    padding: 45px 0 30px;
}


/* ================================
   HEADER
   ================================ */

.header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 65px;
}


.logo {
    display: flex;

    align-items: center;

    gap: 15px;
}


.logo-icon {
    display: grid;

    place-items: center;

    width: 48px;
    height: 48px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: rgba(125, 211, 252, 0.06);

    font-size: 24px;

    box-shadow:
        0 0 30px rgba(125, 211, 252, 0.06);
}


.logo h1 {
    font-size: 21px;

    font-weight: 650;

    letter-spacing: -0.5px;
}


.logo p {
    margin-top: 3px;

    color: var(--text-muted);

    font-size: 13px;
}


.clock {
    color: var(--text-secondary);

    font-variant-numeric: tabular-nums;

    font-size: 14px;
}


/* ================================
   WELCOME
   ================================ */

.welcome {
    margin-bottom: 45px;
}


.welcome h2 {
    margin-bottom: 10px;

    font-size: clamp(30px, 5vw, 46px);

    line-height: 1.1;

    letter-spacing: -1.8px;
}


.welcome p {
    max-width: 600px;

    color: var(--text-secondary);

    font-size: 16px;

    line-height: 1.7;
}


/* ================================
   SERVICES
   ================================ */

.services {
    display: flex;

    flex-direction: column;

    gap: 35px;
}


.service-group {
    padding: 25px;

    border: 1px solid var(--border);

    border-radius: 22px;

    background: var(--surface);

    backdrop-filter: blur(14px);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.20);
}


.group-header {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 20px;
}


.group-icon {
    display: grid;

    place-items: center;

    width: 42px;
    height: 42px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.05);

    font-size: 19px;
}


.group-header h3 {
    font-size: 17px;

    font-weight: 650;
}


.group-header span {
    display: block;

    margin-top: 3px;

    color: var(--text-muted);

    font-size: 12px;
}


/* ================================
   SERVICE GRID
   ================================ */

.service-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;
}


.service-card {
    position: relative;

    display: flex;

    align-items: center;

    min-height: 90px;

    padding: 18px;

    border: 1px solid var(--border);

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.025);

    color: var(--text);

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.service-card:hover {
    transform: translateY(-3px);

    background: var(--surface-hover);

    border-color: var(--border-hover);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.25);
}


.service-card:active {
    transform: translateY(-1px);
}


.card-icon {
    display: grid;

    place-items: center;

    width: 42px;
    height: 42px;

    margin-right: 13px;

    border-radius: 11px;

    background: rgba(255, 255, 255, 0.05);

    font-size: 19px;

    flex-shrink: 0;
}


.card-content {
    min-width: 0;
}


.card-content h4 {
    margin-bottom: 4px;

    font-size: 14px;

    font-weight: 600;
}


.card-content p {
    color: var(--text-muted);

    font-size: 11px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.arrow {
    margin-left: auto;

    padding-left: 10px;

    color: var(--text-muted);

    font-size: 18px;

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}


.service-card:hover .arrow {
    transform: translateX(4px);

    color: var(--accent);
}


/* ================================
   FOOTER
   ================================ */

footer {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 8px;

    margin-top: 45px;

    color: var(--text-muted);

    font-size: 11px;
}


/* ================================
   MOBILE
   ================================ */

@media (max-width: 750px) {

    .container {
        width: min(100% - 24px, 600px);

        padding-top: 25px;
    }


    .header {
        margin-bottom: 50px;
    }


    .clock {
        display: none;
    }


    .welcome {
        margin-bottom: 30px;
    }


    .service-group {
        padding: 18px;
    }


    .service-grid {
        grid-template-columns: 1fr;
    }


    .service-card {
        min-height: 80px;
    }

}


/* ================================
   REDUCED MOTION
   ================================ */

@media (prefers-reduced-motion: reduce) {

    * {
        scroll-behavior: auto !important;

        transition: none !important;
    }

}
