:root {
    --bg: #07111f;
    --panel: rgba(10, 20, 35, 0.88);
    --panel-light: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.13);
    --text: #f8fafc;
    --soft: #d1d5db;
    --muted: #9ca3af;
    --accent: #d6b56d;
    --dark: #07111f;
    --radius: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(180deg, #07111f 0%, #0b1626 45%, #07111f 100%);
}

/* NAVIGATION */

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1120px, calc(100% - 32px));

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;

    padding: 8px 10px;
    background: rgba(7, 17, 31, 0.9);
    border: 1px solid var(--line);
    border-radius: 18px;
    z-index: 99999;

    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    color: white;
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: white;

    font-size: 14px;
    font-weight: 900;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a,
.nav-links a:visited {
    color: var(--soft);
    text-decoration: none;

    font-size: 14px;
    font-weight: 800;

    padding: 10px 14px;
    border-radius: 999px;

    transition: 0.18s ease;
}

.nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.11);
}

/* HERO */

.hero {
    min-height: 100vh;
    position: relative;

    background:
        linear-gradient(
            90deg,
            rgba(7, 17, 31, 0.92),
            rgba(7, 17, 31, 0.44)
        ),
        linear-gradient(
            0deg,
            rgba(7, 17, 31, 1),
            rgba(7, 17, 31, 0.08) 48%
        ),
        url("images/hemsedal-hero.jpg")
        center/cover no-repeat;

    display: flex;
    align-items: flex-start;

    padding: 135px 24px 90px;
}

.hero-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: block;
}

.hero-copy {
    max-width: 760px;
}

.pill,
.panel-kicker,
.captain-label {
    margin: 0 0 16px;

    color: #e5d3a1;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pill {
    display: inline-flex;
    padding: 9px 13px;

    border: 1px solid rgba(214, 181, 109, 0.5);
    border-radius: 999px;
    background: transparent;
}

.hero h1 {
    margin: 0;

    font-size: clamp(58px, 9vw, 128px);
    line-height: 0.9;
    letter-spacing: -0.07em;
    font-weight: 950;
}

.hero h1 span {
    display: block;
    margin-top: 4px;

    color: #e5e7eb;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.04em;
    font-weight: 700;
    text-transform: lowercase;
}

.hero-subtitle {
    max-width: 560px;
    margin: 26px 0 0;

    color: var(--soft);
    font-size: clamp(17px, 1.7vw, 21px);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 20px;
    border-radius: 14px;

    text-decoration: none;
    font-weight: 900;

    transition: 0.18s ease;
}

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

.btn-primary {
    background: white;
    color: var(--dark);
}

.btn-secondary {
    color: white;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

/* COUNTDOWN PANEL */

.hero-panel {
    max-width: 560px;
    margin-top: 34px;
    margin-left: 72px;

    padding: 24px;
    border-radius: var(--radius);

    background: rgba(7, 17, 31, 0.88);
    border: 1px solid var(--line);

    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.countdown-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.time-box {
    text-align: center;

    padding: 18px 10px;
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.time-box span {
    display: block;

    color: white;
    font-size: clamp(28px, 3.5vw, 46px);
    line-height: 1;
    font-weight: 800;
}

.time-box small {
    display: block;
    margin-top: 8px;

    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mini-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;

    margin-top: 18px;
}

.mini-info div {
    padding: 16px;

    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.mini-info span {
    display: block;
    margin-bottom: 6px;

    color: var(--muted);
    font-size: 12px;
}

.mini-info strong {
    color: white;
    font-size: 14px;
}

/* MAIN LAYOUT */

main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 80px;
}

.section {
    max-width: 940px;

    margin-top: 42px;
    margin-bottom: 42px;
    margin-left: 0;
    margin-right: auto;

    padding: clamp(24px, 4vw, 44px);

    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);

    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

main .section:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
}

.section-heading {
    display: block;
    margin-bottom: 30px;
}

.section h2 {
    margin: 0;

    color: white;
    font-size: clamp(40px, 5vw, 66px);
    line-height: 0.95;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.section-heading > p {
    max-width: 640px;
    margin-top: 14px;

    color: var(--soft);
    font-size: 17px;
    line-height: 1.7;
}

.eyebrow {
    display: none;
}

/* DAGSKRA / TIMELINE */

.timeline {
    display: grid;
    gap: 14px;

    max-width: 820px;
}

.timeline-item {
    width: 92%;

    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 18px;
    align-items: center;

    padding: 18px;

    border-radius: 24px;
    background: var(--panel-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item:nth-child(odd) {
    margin-right: auto;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
}

.date-pill {
    height: 62px;

    display: grid;
    place-items: center;

    border-radius: 16px;
    border: 1px solid rgba(214, 181, 109, 0.45);

    color: #e5d3a1;
    font-size: 16px;
    font-weight: 950;
    text-transform: uppercase;
}

.timeline-item h3 {
    margin: 0 0 6px;

    color: white;
    font-size: 24px;
}

.timeline-item p {
    margin: 0;

    color: var(--soft);
    line-height: 1.6;
}

/* FERDALAG */

.feature-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
}

.feature-card:nth-child(3) {
    grid-column: span 2;
}

.feature-card,
.captain-card,
.points-card,
.leaderboard-card {
    padding: 24px;

    background: var(--panel-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
}

.feature-card {
    min-height: 150px;
}

.feature-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    margin-bottom: 18px;

    border-radius: 16px;
    border: 1px solid rgba(214, 181, 109, 0.42);

    color: #e5d3a1;
    font-size: 13px;
    font-weight: 900;
}

.feature-card h3,
.captain-card h3,
.points-card h3,
.leaderboard-card h3 {
    margin: 0 0 10px;

    color: white;
    font-size: 23px;
}

.feature-card p,
.captain-card p,
.leaderboard-card p {
    margin: 0;

    color: var(--soft);
    line-height: 1.6;
}

/* FYRIRLIDAR */

.captain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.captain-card {
    min-height: 220px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.captain-card:first-child {
    min-height: 230px;
}

.captain-card:last-child {
    min-height: 190px;
    margin-top: 34px;
}

/* KEPPNI */

.competition-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;

    max-width: 820px;
}

table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 18px;
}

th,
td {
    padding: 16px;
    text-align: left;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    color: white;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    background: rgba(255, 255, 255, 0.06);
}

td {
    color: var(--soft);
}

td:last-child {
    color: #e5d3a1;
    font-weight: 900;
}

/* FOOTER */

footer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 40px;

    color: var(--muted);
    text-align: center;
}

/* PHONE / TABLET */

@media (max-width: 900px) {
    .navbar {
        top: 10px;
        width: calc(100% - 20px);

        flex-direction: column;
        gap: 10px;

        border-radius: 24px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .hero {
        padding-top: 180px;
    }

    .hero-panel {
        margin-left: 0;
    }

    .section,
    main .section:nth-child(even) {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .timeline-item {
        width: 100%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card:nth-child(3) {
        grid-column: auto;
    }

    .captain-grid {
        grid-template-columns: 1fr;
    }

    .captain-card:last-child {
        margin-top: 0;
    }
}

@media (max-width: 560px) {
    .brand {
        font-size: 14px;
    }

    .countdown-card {
        grid-template-columns: repeat(2, 1fr);
    }

    .mini-info {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .date-pill {
        width: 86px;
        margin: 0 auto;
    }
}