:root {
    --ink: #f4f7fb;
    --muted: #d5d0de;
    --line: rgba(255, 255, 255, 0.28);
    --card: #3a1768;
    --card-deep: #2b1054;
    --blue: #1f8fff;
    --blue-deep: #0b6fe6;
    --page: #120818;
}

body.is-home,
body.is-inner {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--page);
    font-family: Montserrat, "Segoe UI", sans-serif;
}

body.is-home::before,
body.is-inner::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(18, 8, 24, 0.18) 0%, rgba(18, 8, 24, 0.28) 36%, rgba(18, 8, 24, 0.82) 62%, #120818 82%),
        url("../image/home/background.jpg") center top / cover no-repeat;
}

.site {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 28px 18px;
}

.site-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    color: #fff;
    text-decoration: none;
}

.brand-name {
    display: block;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1;
}

.brand-accent {
    color: #2f7bff;
}

.brand-sub {
    display: block;
    margin-top: 6px;
    color: #efeaf6;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
}

.auth-link {
    margin-top: 8px;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.auth-link:hover,
.brand:hover {
    color: #fff;
    text-decoration: none;
}

.auth-rank {
    display: block;
    margin-top: 4px;
    color: #c9dcff;
    font-size: 13px;
    text-align: right;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 28px;
    align-items: center;
    margin-top: 54px;
}

.hero-title {
    margin: 0;
    color: #fff;
    font-size: 68px;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.hero-card {
    display: block;
    overflow: hidden;
    color: #24324a;
    text-decoration: none;
    background: #fff;
    border: 6px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.hero-card img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.hero-card span {
    display: block;
    padding: 14px 18px 16px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.hero-card:hover {
    color: #24324a;
    text-decoration: none;
}

.cta-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    margin: 34px 0 42px;
}

.cta-note {
    margin: 0;
    color: #efeaf6;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.cta-note-right {
    text-align: right;
}

.cta-button {
    display: inline-block;
    min-width: 280px;
    padding: 16px 28px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    background: linear-gradient(180deg, #3cb2ff 0%, #1484f6 55%, #0b6fe0 100%);
    border-radius: 10px;
    box-shadow: 0 10px 18px rgba(8, 70, 160, 0.35);
}

.cta-button:hover,
.cta-button:focus {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.06);
}

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

.tile,
.feature {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: var(--card);
    border-radius: 4px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.tile:hover,
.feature:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.tile img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.tile-caption,
.feature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 92px;
    padding: 14px 16px 16px;
    background: linear-gradient(180deg, #4a1d86 0%, #35145f 100%);
}

.tile-caption strong,
.feature-copy strong {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.tile-caption small,
.feature-copy em {
    margin-top: 4px;
    color: #f3eefe;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.3;
}

.feature-row {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
    margin-top: 22px;
}

.feature {
    flex-direction: row;
    height: 188px;
}

.feature img {
    width: 40%;
    height: 188px;
    object-fit: cover;
}

.feature-copy {
    width: 60%;
    height: 188px;
    min-height: 0;
    padding: 18px 20px;
}

.feature-copy strong {
    margin-bottom: 8px;
    font-size: 28px;
    letter-spacing: 0.4px;
}

.site-footer {
    margin-top: 54px;
    color: #ddd6e6;
    font-size: 15px;
}

.footer-rule {
    height: 1px;
    margin: 0 0 28px;
    background: var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a {
    color: #ddd6e6;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 28px;
    padding: 18px 0 8px;
    border-top: 1px solid var(--line);
    color: #fff;
    font-size: 16px;
    text-align: center;
}

.is-inner .site-page {
    max-width: 1080px;
    margin: 28px auto 10px;
    padding: 18px 12px 28px;
    overflow: hidden;
    color: #222;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
}

.is-inner .site-page a {
    color: #1d63b8;
}

.is-inner .site-page img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 980px) {
    .hero,
    .feature-row,
    .tile-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 48px;
    }

    .cta-row {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .cta-note,
    .cta-note-right {
        text-align: center;
    }

    .feature {
        flex-direction: column;
        height: auto;
    }

    .feature img,
    .feature-copy {
        width: 100%;
        height: auto;
    }

    .feature img {
        height: 180px;
    }
}

@media (max-width: 640px) {
    .site {
        padding: 18px 14px 12px;
    }

    .site-header {
        align-items: flex-start;
        gap: 10px;
    }

    .brand-name {
        font-size: 18px;
    }

    .brand-sub {
        font-size: 10px;
        letter-spacing: 0.2px;
    }

    .auth-link {
        font-size: 13px;
    }

    .hero {
        margin-top: 28px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-card span,
    .tile-caption strong {
        font-size: 18px;
    }

    .cta-button {
        width: 100%;
        min-width: 0;
    }
}
