:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #07110e;
    color: #f1f7f4;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(40, 196, 137, 0.16), transparent 34rem),
        linear-gradient(180deg, #081511 0%, #050a08 100%);
}

button,
a {
    font: inherit;
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 36px;
}

.hero,
.summary,
.rider-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.hero {
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(210, 233, 224, 0.16);
}

.eyebrow,
.section-label,
.route-label,
footer {
    color: #8ca59a;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow,
.section-label {
    margin: 0 0 10px;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 14px;
    font-size: clamp(2rem, 5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.intro {
    max-width: 700px;
    margin-bottom: 0;
    color: #abc0b7;
    font-size: 1rem;
    line-height: 1.75;
}

.environment-badge {
    flex: 0 0 auto;
    padding: 11px 15px;
    border: 1px solid rgba(72, 224, 162, 0.42);
    border-radius: 999px;
    background: rgba(30, 112, 79, 0.14);
    color: #6af0b5;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.summary {
    padding: 30px 0 22px;
}

.summary-value {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
}

.refresh-button,
.rider-link {
    border: 1px solid #43d99e;
    border-radius: 10px;
    background: #43d99e;
    color: #03110c;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.refresh-button {
    padding: 11px 15px;
}

.refresh-button:hover,
.rider-link:hover {
    border-color: #7ef1c2;
    background: #7ef1c2;
    transform: translateY(-1px);
}

.refresh-button:focus-visible,
.rider-link:focus-visible {
    outline: 3px solid rgba(126, 241, 194, 0.36);
    outline-offset: 3px;
}

.refresh-button:disabled {
    cursor: wait;
    opacity: 0.58;
    transform: none;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.service-card {
    min-height: 190px;
    padding: 22px;
    border: 1px solid rgba(210, 233, 224, 0.13);
    border-radius: 16px;
    background: rgba(10, 25, 20, 0.72);
    box-shadow: 0 16px 54px rgba(0, 0, 0, 0.14);
}

.service-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 27px;
}

.service-index {
    color: #70877d;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7f958c;
    box-shadow: 0 0 0 5px rgba(127, 149, 140, 0.1);
}

.service-card[data-state="online"] .status-dot {
    background: #43d99e;
    box-shadow: 0 0 0 5px rgba(67, 217, 158, 0.12);
}

.service-card[data-state="offline"] .status-dot {
    background: #ff806f;
    box-shadow: 0 0 0 5px rgba(255, 128, 111, 0.12);
}

.service-card h2 {
    margin-bottom: 8px;
    font-size: 1.04rem;
}

.route-label {
	margin-bottom: 9px;
	letter-spacing: 0.04em;
	text-transform: none;
}

.service-mode {
	min-height: 2.6em;
	margin-bottom: 15px;
	color: #8ca59a;
	font-size: 0.82rem;
	line-height: 1.45;
}

.service-status {
    margin: 0;
    color: #9fb3aa;
    font-size: 0.9rem;
    font-weight: 700;
}

.service-card[data-state="online"] .service-status {
    color: #66e9b5;
}

.service-card[data-state="offline"] .service-status {
    color: #ff9b8d;
}

.rider-callout {
    margin-top: 14px;
    padding: 28px;
    border: 1px solid rgba(100, 158, 255, 0.3);
    border-radius: 16px;
    background: linear-gradient(120deg, rgba(34, 65, 92, 0.54), rgba(12, 30, 24, 0.64));
}

.rider-callout h2 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.rider-callout p:last-child {
    margin-bottom: 0;
    color: #acc1b8;
    line-height: 1.65;
}

.rider-link {
    flex: 0 0 auto;
    padding: 12px 17px;
}

footer {
    padding-top: 28px;
    line-height: 1.7;
    text-align: center;
    text-transform: none;
}

@media (max-width: 860px) {
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .shell {
        width: min(100% - 22px, 1180px);
        padding-top: 30px;
    }

    .hero,
    .summary,
    .rider-callout {
        align-items: stretch;
        flex-direction: column;
    }

    .environment-badge,
    .refresh-button,
    .rider-link {
        align-self: flex-start;
    }

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

    .service-card {
        min-height: 170px;
    }
}
