:root {
    --md-sys-color-primary: #364364;
    --md-sys-color-on-primary: #ffffff;
    --md-sys-color-primary-container: #d8e2ff;
    --md-sys-color-on-primary-container: #0b1532;
    --md-sys-color-secondary: #4d5775;
    --md-sys-color-surface: #f7f8fd;
    --md-sys-color-surface-container: #e8eaf6;
    --md-sys-color-surface-container-high: #dde0ef;
    --md-sys-color-on-surface: #1a1c26;
    --md-sys-color-outline: #74788a;
    --md-sys-color-error-container: #ffdada;
    --md-sys-color-on-error-container: #3a0002;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow-2: 0 6px 22px rgba(0, 0, 0, 0.08);
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--md-sys-color-on-surface);
    background: var(--md-sys-color-surface);
    font-family: "M PLUS 2", "Hiragino Kaku Gothic ProN", sans-serif;
    line-height: 1.65;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 15% -10%, #c5ccec 0, #c5ccec00 45%),
        radial-gradient(circle at 95% 30%, #d0d7f0 0, #d0d7f000 52%),
        linear-gradient(180deg, #f8f9fe 0%, #f3f5fb 100%);
}

.top-app-bar {
    position: sticky;
    top: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 14px 24px;
    backdrop-filter: blur(10px);
    background: rgba(247, 248, 253, 0.82);
    border-bottom: 1px solid rgba(116, 120, 138, 0.2);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    font-family: "Urbanist", sans-serif;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-badge {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

.top-actions {
    display: inline-flex;
    gap: 10px;
}

.layout {
    width: min(1080px, calc(100% - 32px));
    margin: 22px auto 48px;
    display: grid;
    gap: 16px;
}

.card {
    background: var(--md-sys-color-surface-container);
    border: 1px solid rgba(116, 120, 138, 0.22);
    border-radius: 28px;
    box-shadow: var(--shadow-1);
    padding: 24px;
}

.hero {
    background: linear-gradient(155deg, #cfd6f0 0%, #e8ecfb 52%, #d5daf2 100%);
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    right: -54px;
    top: -54px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, #8899cc 0%, #8899cc00 70%);
    opacity: 0.5;
    pointer-events: none;
}

.eyebrow {
    margin: 0;
    color: var(--md-sys-color-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p,
ul {
    margin: 0;
}

h1 {
    margin-top: 8px;
    font-family: "Urbanist", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.2;
}

h2 {
    font-family: "Urbanist", sans-serif;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

h3 {
    font-size: 1.05rem;
    font-weight: 800;
}

.lead {
    margin-top: 14px;
    max-width: 74ch;
}

.chip-row {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef0fb;
    border: 1px solid rgba(54, 67, 100, 0.24);
    color: #0f1730;
    font-size: 0.92rem;
    font-weight: 600;
}

.cta-row {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

a {
    color: inherit;
}

.filled-button,
.outlined-button,
.text-button {
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.filled-button {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    padding: 9px 16px;
    box-shadow: var(--shadow-1);
}

.outlined-button {
    border: 1px solid var(--md-sys-color-outline);
    color: #0f1730;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.56);
}

.text-button {
    padding: 8px 12px;
}

.large {
    padding: 11px 18px;
}

.filled-button:hover,
.outlined-button:hover,
.text-button:hover {
    transform: translateY(-1px);
}

.notice {
    background: var(--md-sys-color-error-container);
    color: var(--md-sys-color-on-error-container);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.feature-item {
    background: var(--md-sys-color-surface-container-high);
    border-radius: 18px;
    padding: 14px;
    border: 1px solid rgba(116, 120, 138, 0.22);
}

.feature-item p {
    margin-top: 6px;
    font-size: 0.95rem;
}

.two-col {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
}

.meta {
    margin-top: 4px;
    color: #3e4560;
    font-size: 0.92rem;
}

.device-list {
    margin-top: 12px;
    padding-left: 1.2em;
    display: grid;
    gap: 6px;
}

.shot-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.shot-grid figure {
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-2);
    background: #ffffff;
}

.shot-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.footer {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto 26px;
    text-align: center;
    background: #dde0ef;
}

.footer a {
    color: #1a2550;
    font-weight: 700;
}

.status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 6px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.status-current {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--md-sys-color-secondary);
}

.version-badge {
    display: inline-block;
    font-family: "Urbanist", sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--md-sys-color-primary);
}

.chip-warn {
    background: #fff4e5;
    border-color: rgba(180, 110, 0, 0.28);
    color: #6b3c00;
}

.release-list {
    display: grid;
    gap: 6px;
    margin: 0 0 16px;
}

.release-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--md-sys-color-surface-container-high);
    border: 1px solid rgba(116, 120, 138, 0.2);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
}

.release-row:hover {
    background: #d4d9f0;
}

.release-row-latest {
    border-color: var(--md-sys-color-primary);
    background: #e8edfb;
}

.release-ver {
    font-family: "Urbanist", sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--md-sys-color-primary);
    min-width: 90px;
}

.release-row-date {
    font-size: 0.85rem;
    color: var(--md-sys-color-secondary);
    flex: 1;
}

.chip-sm {
    padding: 4px 10px;
    font-size: 0.78rem;
}

.chip-stable {
    background: #e3eefd;
    border-color: rgba(30, 80, 180, 0.24);
    color: #0d2060;
}

.release-more-btn {
    display: block;
    width: 100%;
    margin: 4px 0 12px;
    padding: 10px;
    border: 1px dashed var(--md-sys-color-outline);
    border-radius: 14px;
    background: transparent;
    color: var(--md-sys-color-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.release-more-btn:hover {
    background: var(--md-sys-color-surface-container-high);
}

.text-link {
    font-weight: 700;
    color: var(--md-sys-color-primary);
    text-decoration: none;
    font-size: 0.95rem;
}

.text-link:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .feature-grid,
    .shot-grid,
    .two-col {
        grid-template-columns: 1fr;
    }

    .top-app-bar {
        padding: 12px 14px;
    }

    .layout {
        width: min(1080px, calc(100% - 18px));
        margin-top: 12px;
    }

    .card {
        border-radius: 22px;
        padding: 18px;
    }
}

@media (max-width: 680px) {
    .top-app-bar {
        flex-wrap: wrap;
        row-gap: 8px;
        padding: 10px 12px;
    }

    .brand {
        min-width: 0;
        font-size: 0.96rem;
    }

    .top-actions {
        margin-left: auto;
        gap: 8px;
    }

    .top-actions .text-button,
    .top-actions .filled-button {
        padding: 7px 10px;
        font-size: 0.86rem;
    }

    .cta-row .filled-button,
    .cta-row .outlined-button {
        width: 100%;
        text-align: center;
    }

    .status-row {
        gap: 12px;
    }

    .status-current {
        min-width: calc(50% - 6px);
    }

    .release-row {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .release-ver {
        width: 100%;
        min-width: 0;
    }

    .release-row-date {
        flex: 0 0 auto;
    }

    .chip-sm {
        margin-left: auto;
    }

    .device-list li {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}