:root {
    --ink: #0b0b0c;
    --ink-2: #121214;
    --line: #26262b;
    --gold: #c9a45c;
    --gold-lite: #e9d7a6;
    --text: #eceae5;
    --muted: #98958d;
    --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gold {
    background: linear-gradient(100deg, var(--gold-lite), var(--gold) 45%, #8b6f36);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- header + nav tabs ---------- */

header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: rgba(11, 11, 12, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

    header .wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        height: 72px;
    }

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
}

    .brand img { height: 30px; }

.nav-tabs {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

    .nav-tabs a {
        position: relative;
        padding: 0.5rem 0.9rem;
        color: var(--muted);
        text-decoration: none;
        font-size: 0.92rem;
        border-radius: 6px;
        transition: color 0.2s;
    }

        .nav-tabs a::after {
            content: "";
            position: absolute;
            left: 50%;
            right: 50%;
            bottom: -0.35rem;
            height: 2px;
            background: linear-gradient(90deg, var(--gold-lite), var(--gold));
            transition: left 0.25s, right 0.25s;
        }

        .nav-tabs a:hover { color: var(--text); }

        .nav-tabs a.active { color: var(--gold-lite); }

            .nav-tabs a.active::after { left: 0.9rem; right: 0.9rem; }

        .nav-tabs a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- sections ---------- */

main { padding-top: 72px; }

section {
    padding: 6.5rem 0;
    scroll-margin-top: 72px;
}

    section + section { border-top: 1px solid var(--line); }

h1, h2 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 1rem; }

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }

h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }

.eyebrow {
    color: var(--gold);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
}

.lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }

/* ---------- hero ---------- */

#home {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    background: radial-gradient(60% 70% at 70% 30%, rgba(201, 164, 92, 0.12), transparent 70%);
}

    #home img { width: min(320px, 70vw); margin-bottom: 2rem; }

.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--line);
    color: var(--text);
    transition: transform 0.15s, border-color 0.2s;
}

    .btn:hover { transform: translateY(-1px); border-color: var(--gold); }

    .btn.primary {
        background: linear-gradient(100deg, var(--gold-lite), var(--gold));
        border-color: transparent;
        color: #191308;
    }

/* ---------- cards ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.card {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.5rem;
}

    .card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }

    .card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- contact + footer ---------- */

#contact a { color: var(--gold-lite); }

footer {
    border-top: 1px solid var(--line);
    padding: 2rem 0;
    color: var(--muted);
    font-size: 0.85rem;
}

    footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

    footer img { height: 22px; opacity: 0.8; }

@media (max-width: 640px) {
    header .wrap { height: auto; padding-top: 0.6rem; padding-bottom: 0.6rem; flex-direction: column; }
    main { padding-top: 118px; }
    section { padding: 4rem 0; scroll-margin-top: 118px; }
    #home { min-height: 0; }
}

/* ---------- blazor plumbing (from the template) ---------- */

h1:focus { outline: none; }

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    color: #111;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #26262b;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #c9a45c;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    color: var(--muted);
}

    .loading-progress-text:after { content: var(--blazor-load-percentage-text, "Loading"); }
