/* Home page */
.home-page {
    flex-grow: 1;
    background: #f5f7fb;
    color: #1e2b4d;
}

.home-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.home-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
    background:
        linear-gradient(90deg, rgba(30, 43, 77, 0.055) 1px, transparent 1px),
        linear-gradient(0deg, rgba(30, 43, 77, 0.055) 1px, transparent 1px),
        #f8fafc;
    background-size: 72px 72px;
}

.home-hero-inner {
    position: relative;
    padding-top: 40px;
    padding-bottom: 48px;
}

.home-route-line {
    position: absolute;
    height: 5px;
    border-radius: 999px;
    opacity: 0.72;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.home-route-line-one {
    width: 42%;
    top: 18%;
    right: -8%;
    transform: rotate(-14deg);
    background: #facc15;
}

.home-route-line-two {
    width: 36%;
    top: 52%;
    right: 4%;
    transform: rotate(22deg);
    background: #38bdf8;
}

.home-route-line-three {
    width: 34%;
    bottom: 15%;
    left: -7%;
    transform: rotate(-10deg);
    background: #34d399;
}

.home-stop-dot {
    position: absolute;
    width: 13px;
    height: 13px;
    border: 3px solid #ffffff;
    border-radius: 999px;
    background: #1e2b4d;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
}

.home-stop-dot-one {
    top: 17%;
    right: 19%;
}

.home-stop-dot-two {
    top: 51%;
    right: 33%;
}

.home-stop-dot-three {
    bottom: 14%;
    left: 24%;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    color: #475569;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.home-eyebrow svg {
    width: 16px;
    height: 16px;
    color: #eab308;
    flex: 0 0 auto;
}

.home-title {
    max-width: 760px;
    margin: 28px 0 0;
    color: #1e2b4d;
    font-size: 40px;
    line-height: 1.04;
    letter-spacing: 0;
    font-style: italic;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.home-title span {
    display: block;
    color: #eab308;
}

.home-copy {
    max-width: 680px;
    margin-top: 24px;
    color: #475569;
    font-size: 16px;
    line-height: 1.65;
    font-weight: 700;
}

.home-board {
    max-width: 960px;
    margin-top: 36px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 42px rgba(148, 163, 184, 0.28);
    backdrop-filter: blur(16px);
}

.home-board-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 120px;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    color: inherit;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    transition: background-color 0.15s ease;
}

.home-board-row:first-child {
    border-top: 0;
}

.home-board-row:hover {
    background: #ffffff;
}

.home-board-code {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #1e2b4d;
    color: #ffffff;
    font-weight: 900;
    font-style: italic;
}

.home-board-code::before {
    content: "";
    position: absolute;
    left: -4px;
    top: 50%;
    width: 4px;
    height: 28px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: var(--home-tone, #facc15);
}

.home-board-name {
    min-width: 0;
}

.home-board-title {
    color: #1e2b4d;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 900;
    font-style: italic;
    overflow-wrap: anywhere;
}

.home-board-meta {
    margin-top: 4px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

.home-board-time {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: #1e2b4d;
    font-size: 14px;
    font-weight: 900;
}

.home-board-time svg,
.home-mode-action svg {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    transition: color 0.15s ease, transform 0.15s ease;
}

.home-board-row:hover .home-board-time svg,
.home-mode-card:hover .home-mode-action svg {
    color: #eab308;
    transform: translateX(2px);
}

.home-tone-bus {
    --home-tone: #facc15;
}

.home-tone-trolley {
    --home-tone: #38bdf8;
}

.home-tone-tram {
    --home-tone: #34d399;
}

.home-section {
    padding-top: 32px;
    padding-bottom: 8px;
}

.home-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.home-stat-card,
.home-mode-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.home-stat-card {
    padding: 20px;
}

.home-stat-value {
    color: #1e2b4d;
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    font-style: italic;
}

.home-stat-label {
    margin-top: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.home-modes {
    padding-top: 32px;
    padding-bottom: 48px;
}

.home-section-title {
    margin: 0;
    color: #1e2b4d;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: 0;
    font-weight: 900;
    font-style: italic;
}

.home-section-copy {
    max-width: 560px;
    margin-top: 8px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
}

.home-mode-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}

.home-mode-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
    padding: 20px;
    color: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-mode-card:hover {
    transform: translateY(-2px);
    border-color: #1e2b4d;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.home-mode-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    border-radius: 8px;
}

.home-mode-icon svg {
    width: 24px;
    height: 24px;
}

.home-accent-bus {
    background: #facc15;
    color: #1e2b4d;
}

.home-accent-trolley {
    background: #e0f2fe;
    color: #0369a1;
}

.home-accent-tram {
    background: #d1fae5;
    color: #047857;
}

.home-accent-minibus {
    background: #ffe4e6;
    color: #be123c;
}

.home-mode-title {
    margin: 0;
    color: #1e2b4d;
    font-size: 21px;
    line-height: 1.18;
    font-weight: 900;
    font-style: italic;
    overflow-wrap: anywhere;
}

.home-mode-text {
    margin-top: 12px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 700;
}

.home-mode-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    color: #1e2b4d;
    font-size: 14px;
    font-weight: 900;
}

@media (min-width: 640px) {
    .home-mode-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .home-container {
        padding-left: 32px;
        padding-right: 32px;
    }

    .home-hero-inner {
        padding-top: 56px;
        padding-bottom: 64px;
    }

    .home-title {
        font-size: 56px;
    }

    .home-copy {
        font-size: 18px;
    }

    .home-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .home-title {
        font-size: 64px;
    }

    .home-mode-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .home-route-line-one,
    .home-route-line-two {
        width: 76%;
        right: -32%;
    }

    .home-route-line-three {
        width: 70%;
    }

    .home-board-row {
        grid-template-columns: 56px minmax(0, 1fr) 24px;
        gap: 12px;
        padding: 14px 16px;
    }

    .home-board-time span {
        display: none;
    }

    .home-board-title {
        font-size: 18px;
    }
}

@media (max-width: 420px) {
    .home-title {
        font-size: 34px;
    }

    .home-copy {
        font-size: 15px;
    }

    .home-board-row {
        grid-template-columns: 48px minmax(0, 1fr) 20px;
    }

    .home-board-code {
        width: 42px;
        height: 42px;
    }
}
