:root[data-theme="dark"] {
    --pico-background-color: #0f141b;
    --pico-card-background-color: #151d27;
    --pico-card-sectioning-background-color: #111821;
    --pico-primary: #f2b95d;
    --pico-primary-hover: #ffd089;
    --pico-primary-focus: rgba(242, 185, 93, 0.2);
    --pico-muted-border-color: rgba(173, 188, 204, 0.14);
    --pico-table-border-color: rgba(173, 188, 204, 0.14);
    --pico-color: #edf2f7;
    --pico-muted-color: #9eb0c1;
    --page-accent: #8cc4ff;
    --page-warm: #f2b95d;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(242, 185, 93, 0.12), transparent 24%),
        radial-gradient(circle at top right, rgba(140, 196, 255, 0.1), transparent 20%),
        linear-gradient(180deg, #0f141b 0%, #0b1016 100%);
}

main.container {
    max-width: 1180px;
    padding-top: 1.25rem;
    padding-bottom: 3rem;
}

nav {
    backdrop-filter: blur(18px);
    background: rgba(9, 13, 18, 0.72);
    border-bottom: 1px solid rgba(173, 188, 204, 0.12);
}

nav a[aria-current="page"] {
    color: var(--page-warm);
    font-weight: 800;
}

h1,
h2,
h3,
strong {
    font-family: "Manrope", sans-serif;
}

.hero {
    margin-bottom: 1.5rem;
}

.hero-card {
    padding: 1.1rem 1.2rem;
    border-radius: 22px;
    border: 1px solid rgba(173, 188, 204, 0.14);
    background:
        linear-gradient(180deg, rgba(24, 32, 44, 0.95), rgba(18, 25, 34, 0.95)),
        linear-gradient(140deg, rgba(242, 185, 93, 0.06), transparent 44%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.hero-kicker {
    color: var(--page-warm);
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
    font-weight: 800;
}

.hero h1 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1.02;
    margin-bottom: 0.45rem;
}

.hero-text {
    color: var(--pico-muted-color);
    font-size: 0.98rem;
    margin-bottom: 0.9rem;
    max-width: 52rem;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(173, 188, 204, 0.12);
    color: #dfe7ef;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-pill strong {
    color: #ffffff;
    font-size: 1rem;
}

.service-section {
    margin-top: 1.35rem;
}

.section-heading {
    margin-bottom: 0.8rem;
}

.section-heading h2 {
    margin-bottom: 0.2rem;
    font-size: 1.45rem;
}

.section-heading p {
    margin: 0;
    color: var(--pico-muted-color);
    font-size: 0.92rem;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(102px, 102px));
    justify-content: start;
    gap: 1rem 1rem;
}

.app-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.app-tile:hover {
    text-decoration: none;
}

.app-icon-shell {
    position: relative;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(160deg, #314055, #182230);
    border: 1px solid rgba(173, 188, 204, 0.16);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.app-tile:hover .app-icon-shell {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
}

.app-icon-shell-dashboard {
    background: linear-gradient(160deg, #7c93ff, #4253b8);
}

.app-icon-shell-pterodactyl {
    background: linear-gradient(160deg, #6ae3d9, #157a7a);
}

.app-icon-shell-grafana {
    background: linear-gradient(160deg, #ffb45d, #e05420);
}

.app-icon-shell-prometheus {
    background: linear-gradient(160deg, #ff9278, #cc5137);
}

.app-icon-shell-immich {
    background: linear-gradient(160deg, #27354a, #111824);
}

.app-icon-svg {
    width: 40px;
    height: 40px;
    display: block;
}

.app-icon-fallback {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.app-tile-planned .app-icon-shell {
    filter: saturate(0.92);
}

.app-tile-planned .app-icon-shell::after {
    content: "";
    position: absolute;
    right: 7px;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.app-name {
    display: block;
    max-width: 100px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.15;
}

.app-state {
    display: block;
    color: var(--pico-muted-color);
    font-size: 0.72rem;
    line-height: 1.1;
}

.service-note {
    margin-top: 0.85rem;
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(173, 188, 204, 0.1);
    background: rgba(140, 196, 255, 0.07);
    color: #d4e5f6;
    font-size: 0.88rem;
}

.error-text {
    color: #ffb4b4;
    font-weight: 700;
}

@media (max-width: 640px) {
    main.container {
        padding-top: 1rem;
    }

    .hero-card {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .app-grid {
        grid-template-columns: repeat(4, minmax(0, 92px));
        gap: 0.9rem 0.75rem;
    }

    .app-icon-shell {
        width: 64px;
        height: 64px;
        border-radius: 17px;
    }

    .app-icon-svg {
        width: 36px;
        height: 36px;
    }

    .app-name {
        font-size: 0.84rem;
    }
}
