/*
=========================================================
RAINTOWN WEBSITE - CLEAN MAIN CSS
Generated from the supplied main.css source.

Purpose:
- Remove repeated selector blocks that had accumulated.
- Keep the existing page/component classes.
- Make the home layout deterministic.
- Keep the RainTown logo constrained to the top-left header.
- Disable the server-status panel in the home hero.
=========================================================
*/


:root {
    --bg: #050913;
    --bg-soft: #09111d;
    --panel: rgba(9, 20, 35, 0.78);
    --panel-strong: rgba(10, 23, 39, 0.92);
    --line: rgba(99, 166, 255, 0.14);
    --line-strong: rgba(99, 166, 255, 0.32);
    --text: #f7faff;
    --muted: #93a8c0;
    --blue: #3478ff;
    --cyan: #55cfff;
    --green: #4ef3a4;
    --container: 1400px;
    --font: Arial, Helvetica, sans-serif;
    --bg-2: #07111f;
    --blue-2: #1f5edb;
    --cyan-soft: #99e6ff;
    --font-main: "Montserrat", Arial, sans-serif;
    --font-thai: "Kanit", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body,
button,
a {
    font-family: var(--font);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
}

img {
    max-width: 100%;
}

.container {
    width: min(
        var(--container),
        calc(100% - 48px)
    );
    margin-left: auto;
    margin-right: auto;
}

.header-layout {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-navigation a {
    color: #dbe8f6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.brand {
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    height: 90px;
    flex-shrink: 0;
    max-width: 180px !important;
    flex: 0 0 auto !important;
}

.brand-wordmark {
    display: block !important;
    position: static !important;
    width: auto !important;
    height: 46px !important;
    max-width: 150px !important;
    max-height: 46px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
    flex-shrink: 0 !important;
}

.hero-content,
.hero-status {
    position: relative;
    z-index: 2;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 34px;
    justify-content: center;
    min-width: 0;
}

.nav-link.active::after,
.nav-link:hover::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 18px;
    height: 2px;
    border-radius: 10px;
    background: linear-gradient(
            90deg,
            transparent,
            var(--cyan),
            transparent
        );
    box-shadow: 0 0 12px rgba(103, 200, 255, 0.65);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    background: transparent;
    cursor: pointer;
}

.hero-title span:first-child {
    color: #ffffff;
}

.button:hover {
    transform: translateY(-2px);
}

.hero-tags span + span::before {
    content: "";
    position: absolute;
    left: -13px;
    top: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--cyan);
    transform: translateY(-50%);
}

.status-indicator {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #e4b24a;
    box-shadow: 0 0 16px
        rgba(228, 178, 74, 0.55);
}

.city-section,
.applications-section,
.news-section {
    padding: 110px 0;
    border-top: 1px solid var(--line);
}

.section-description {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.section-link {
    justify-self: end;
    color: var(--cyan);
    font-size: 12px;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(
            4,
            minmax(0, 1fr)
        );
    gap: 18px;
}

.city-card h3,
.application-card h3,
.news-card h3 {
    margin: 10px 0 6px;
    font-size: 17px;
    letter-spacing: 0.04em;
}

.city-card p,
.application-card p,
.news-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(
            3,
            minmax(0, 1fr)
        );
    gap: 18px;
}

.applications-page {
    background: radial-gradient(
            circle at 75% 12%,
            rgba(48, 116, 255, 0.12),
            transparent 32%
        ),
        #050b14;
}

.applications-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 145px 0 80px;
    border-bottom: 1px solid var(--line);
}

.applications-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            90deg,
            rgba(4, 10, 18, 0.98),
            rgba(4, 10, 18, 0.75) 48%,
            rgba(4, 10, 18, 0.9)
        ),

        linear-gradient(
            180deg,
            transparent,
            #050b14
        ),

        url("../assets/images/hero-city.jpg")
        center / cover no-repeat;
}

.applications-hero .container {
    position: relative;
    z-index: 2;
}

.applications-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr)
        auto;
    align-items: end;
    gap: 70px;
}

.applications-hero-copy {
    max-width: 820px;
}

.applications-hero-copy h1 {
    margin: 14px 0 0;
    font-family: var(--font-main);
    font-size: clamp(
            62px,
            8vw,
            120px
        );
    font-weight: 900;
    line-height: 0.86;
    letter-spacing: -0.07em;
}

.applications-hero-copy h1 span {
    display: block;
    background: linear-gradient(
            180deg,
            #95e4ff,
            #53a9ff 50%,
            #3473ef
        );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.applications-hero-copy > p:last-child {
    max-width: 620px;
    margin: 26px 0 0;
    color: #a5b7ca;
    font-family: var(--font-thai);
    font-size: 16px;
    line-height: 1.8;
}

.applications-hero-meta {
    min-width: 250px;
    display: grid;
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(6, 16, 28, 0.78);
    backdrop-filter: blur(16px);
}

.applications-hero-meta > div {
    padding: 17px 20px;
    background: rgba(9, 22, 38, 0.68);
}

.applications-hero-meta span {
    display: block;
    color: #617990;
    font-size: 8px;
    letter-spacing: 0.14em;
}

.applications-hero-meta strong {
    display: block;
    margin-top: 7px;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 0.07em;
}

.applications-hero-meta > div:first-child strong {
    color: var(--green);
}

.application-list-section {
    padding: 110px 0;
}

.department-grid {
    display: grid;
    grid-template-columns: repeat(
            3,
            minmax(0, 1fr)
        );
    gap: 20px;
}

.department-card {
    overflow: hidden;
    border: 1px solid rgba(108, 169, 235, 0.16);
    border-radius: 18px;
    background: linear-gradient(
            160deg,
            rgba(10, 24, 40, 0.92),
            rgba(5, 14, 24, 0.98)
        );
    box-shadow: 0 24px 70px
        rgba(0, 0, 0, 0.16);
    transition: transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.department-card:hover {
    transform: translateY(-7px);
    border-color: rgba(92, 194, 255, 0.34);
    box-shadow: 0 34px 90px
        rgba(0, 0, 0, 0.28);
}

.department-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.department-image img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.department-card:hover
.department-image img {
    transform: scale(1.06);
}

.department-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            180deg,
            rgba(4, 10, 18, 0.05),
            rgba(4, 10, 18, 0.18) 48%,
            rgba(5, 14, 24, 0.98)
        );
}

.department-content {
    position: relative;
    margin-top: -65px;
    padding: 0 26px 28px;
    z-index: 3;
}

.department-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.department-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 23px;
    border: 1px solid rgba(89, 190, 255, 0.2);
    border-radius: 999px;
    background: rgba(42, 118, 190, 0.08);
    color: var(--cyan);
    font-size: 9px;
    font-weight: 700;
}

.department-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.department-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.department-status.open {
    color: var(--green);
}

.department-status.open::before {
    background: var(--green);
    box-shadow: 0 0 10px
        rgba(78, 243, 164, 0.7);
}

.department-category {
    margin: 28px 0 6px;
    color: var(--cyan);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.department-content h2 {
    margin: 0;
    font-size: 30px;
    letter-spacing: 0.03em;
}

.department-description {
    min-height: 76px;
    margin: 14px 0 0;
    color: #95a8bd;
    font-family: var(--font-thai);
    font-size: 14px;
    line-height: 1.7;
}

.department-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 25px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--line);
}

.department-meta > div {
    padding: 13px;
    background: rgba(6, 17, 29, 0.92);
}

.department-meta span {
    display: block;
    color: #657d94;
    font-size: 7px;
    letter-spacing: 0.12em;
}

.department-meta strong {
    display: block;
    margin-top: 6px;
    color: #dce9f8;
    font-size: 10px;
}

.department-button {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 0 18px;
    border: 1px solid rgba(94, 185, 255, 0.28);
    border-radius: 9px;
    background: linear-gradient(
            90deg,
            rgba(38, 101, 218, 0.72),
            rgba(26, 67, 151, 0.55)
        );
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    transition: border-color 0.2s ease,
        background 0.2s ease;
}

.department-button span {
    color: var(--cyan);
    font-size: 15px;
    transition: transform 0.2s ease;
}

.department-button:hover {
    border-color: rgba(101, 205, 255, 0.55);
    background: linear-gradient(
            90deg,
            rgba(46, 116, 242, 0.88),
            rgba(30, 78, 176, 0.72)
        );
}

.department-button:hover span {
    transform: translateX(4px);
}

.application-process-section {
    padding: 30px 0 110px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(
            4,
            minmax(0, 1fr)
        );
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--line);
}

.process-item {
    min-height: 190px;
    padding: 26px;
    background: linear-gradient(
            145deg,
            rgba(9, 22, 37, 0.96),
            rgba(5, 14, 24, 0.98)
        );
}

.process-item > span {
    color: var(--cyan);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.process-item h3 {
    margin: 38px 0 8px;
    font-size: 18px;
    letter-spacing: 0.08em;
}

.process-item p {
    margin: 0;
    color: #879bb1;
    font-family: var(--font-thai);
    font-size: 13px;
    line-height: 1.7;
}

.applications-bottom-cta {
    padding: 20px 0 110px;
}

.applications-cta-card {
    padding: 75px 30px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: radial-gradient(
            circle at 50% 30%,
            rgba(46, 128, 255, 0.14),
            transparent 36%
        ),
        linear-gradient(
            145deg,
            rgba(10, 25, 42, 0.94),
            rgba(4, 12, 22, 0.98)
        );
}

.applications-cta-card h2 {
    margin: 12px 0 0;
    font-size: clamp(
            34px,
            4vw,
            58px
        );
}

.applications-cta-card > p:not(.section-eyebrow) {
    max-width: 580px;
    margin: 17px auto 0;
    color: var(--muted);
    font-family: var(--font-thai);
    line-height: 1.7;
}

.applications-cta-card .cta-actions {
    justify-content: center;
}

@media (max-width: 1050px) {
    .applications-hero-layout {
        grid-template-columns: 1fr;
    }

    .applications-hero-meta {
        max-width: 560px;
        grid-template-columns: repeat(3, 1fr);
    }

    .department-grid {
        grid-template-columns: 1fr 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 700px) {
    .applications-hero {
        min-height: auto;
        padding: 120px 0 70px;
    }

    .applications-hero-copy h1 {
        font-size: clamp(
                54px,
                18vw,
                82px
            );
    }

    .applications-hero-meta {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .department-grid {
        grid-template-columns: 1fr;
    }

    .department-image {
        height: 230px;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-item {
        min-height: 150px;
    }

}

.application-form-page {
    background: #050b14;
}

.application-form-hero {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 150px 0 75px;
    border-bottom: 1px solid var(--line);
}

.application-form-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.62)
        saturate(0.9);
}

.application-form-hero-bg.police-bg {
    background-image: url("../assets/images/police.jpg");
}

.application-form-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            90deg,
            rgba(4, 10, 18, 0.98),
            rgba(4, 10, 18, 0.73) 52%,
            rgba(4, 10, 18, 0.72)
        ),
        linear-gradient(
            180deg,
            rgba(4, 10, 18, 0.1),
            #050b14 100%
        );
}

.application-form-hero .container {
    position: relative;
    z-index: 3;
}

.application-form-hero-content {
    max-width: 850px;
}

.application-back {
    display: inline-flex;
    margin-bottom: 34px;
    color: #8ea4bb;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.application-back:hover {
    color: var(--cyan);
}

.application-form-label {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--cyan);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.application-open-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid
        rgba(78, 243, 164, 0.22);
    border-radius: 999px;
    background: rgba(78, 243, 164, 0.07);
    color: var(--green);
}

.application-open-badge::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px
        rgba(78, 243, 164, 0.7);
}

.application-form-hero h1 {
    margin: 16px 0 0;
    font-size: clamp(
            62px,
            8vw,
            118px
        );
    line-height: 0.85;
    letter-spacing: -0.07em;
    font-weight: 900;
}

.application-form-hero h1 span {
    display: block;
    background: linear-gradient(
            180deg,
            #9ce7ff,
            #54aaff 52%,
            #3473ef
        );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.application-form-hero-content > p {
    max-width: 620px;
    margin: 25px 0 0;
    color: #a5b7cb;
    font-family: var(--font-thai);
    font-size: 16px;
    line-height: 1.8;
}

.application-form-section {
    padding: 90px 0 120px;
}

.application-form-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.36fr)
        minmax(0, 1fr);
    align-items: start;
    gap: 28px;
}

.application-info-panel {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 14px;
}

.application-info-block {
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(
            145deg,
            rgba(9, 22, 37, 0.9),
            rgba(5, 14, 24, 0.96)
        );
}

.application-info-number {
    color: var(--cyan);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.application-info-block h3 {
    margin: 18px 0 9px;
    font-size: 13px;
    letter-spacing: 0.07em;
}

.application-info-block p,
.application-info-block li {
    color: #879cb2;
    font-family: var(--font-thai);
    font-size: 13px;
    line-height: 1.7;
}

.application-info-block ul {
    margin: 14px 0 0;
    padding-left: 18px;
}

.application-info-block li + li {
    margin-top: 7px;
}

.application-status-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    color: var(--green);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.09em;
}

.application-status-display i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px
        rgba(78, 243, 164, 0.72);
}

.application-form-card {
    overflow: hidden;
    border: 1px solid
        rgba(105, 169, 235, 0.18);
    border-radius: 18px;
    background: linear-gradient(
            155deg,
            rgba(9, 23, 39, 0.96),
            rgba(5, 14, 24, 0.99)
        );
    box-shadow: 0 30px 90px
        rgba(0, 0, 0, 0.2);
}

.application-form-header {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 30px;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 18, 31, 0.72);
}

.application-form-header span:first-child {
    color: var(--cyan);
    font-size: 8px;
    letter-spacing: 0.17em;
}

.application-form-header h2 {
    margin: 7px 0 0;
    font-size: 18px;
    letter-spacing: 0.04em;
}

.application-form-code {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 11px;
    border: 1px solid
        rgba(97, 191, 255, 0.2);
    border-radius: 999px;
    color: #7896b2 !important;
    font-size: 8px !important;
    letter-spacing: 0.14em !important;
}

.application-form {
    padding: 32px;
}

.form-section-title {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 10px 0 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.form-section-title:not(:first-child) {
    margin-top: 44px;
}

.form-section-title > span {
    display: inline-flex;
    min-width: 31px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border: 1px solid
        rgba(86, 190, 255, 0.2);
    border-radius: 999px;
    color: var(--cyan);
    font-size: 8px;
    font-weight: 700;
}

.form-section-title h3 {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.form-section-title p {
    margin: 6px 0 0;
    color: #687e94;
    font-family: var(--font-thai);
    font-size: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.form-field + .form-field:not(.form-grid .form-field) {
    margin-top: 18px;
}

.form-field label {
    color: #8298ad;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.09em;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid
        rgba(106, 158, 218, 0.16);
    border-radius: 9px;
    outline: none;
    background: rgba(4, 14, 25, 0.72);
    color: #ffffff;
    font-family: var(--font-thai);
    font-size: 14px;
    transition: border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.form-field input {
    height: 50px;
    padding: 0 15px;
}

.form-field textarea {
    min-height: 140px;
    resize: vertical;
    padding: 14px 15px;
    line-height: 1.7;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #43596f;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: rgba(83, 190, 255, 0.48);
    background: rgba(7, 19, 33, 0.92);
    box-shadow: 0 0 0 3px
        rgba(69, 157, 255, 0.06);
}

.form-confirm {
    margin-top: 30px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(6, 17, 29, 0.72);
}

.form-confirm label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.form-confirm input {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: #4386ff;
}

.form-confirm span {
    color: #899eb4;
    font-family: var(--font-thai);
    font-size: 13px;
    line-height: 1.6;
}

.application-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 26px;
}

.application-form-actions .button {
    min-width: 160px;
}

@media (max-width: 950px) {
    .application-form-layout {
        grid-template-columns: 1fr;
    }

    .application-info-panel {
        position: static;
        grid-template-columns: repeat(
                3,
                1fr
            );
    }

}

@media (max-width: 700px) {
    .application-form-hero {
        min-height: auto;
        padding: 120px 0 65px;
    }

    .application-form-hero h1 {
        font-size: clamp(
                52px,
                18vw,
                82px
            );
    }

    .application-form-section {
        padding: 60px 0 90px;
    }

    .application-info-panel {
        grid-template-columns: 1fr;
    }

    .application-form {
        padding: 22px;
    }

    .application-form-header {
        padding: 0 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .application-form-actions {
        flex-direction: column-reverse;
    }

    .application-form-actions .button {
        width: 100%;
    }

}

.application-message {
    min-height: 22px;
    margin-top: 18px;
    text-align: right;
    font-family: var(--font-thai);
    font-size: 13px;
}

.application-message.loading {
    color: #79bfff;
}

.application-message.success {
    color: #4ef3a4;
}

.application-message.error {
    color: #ff6c7f;
}

.application-form-actions
button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.cta-layout > p:not(.section-eyebrow) {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 16px;
}

@media (
    max-width: 1100px
) {
    .header-layout {
        grid-template-columns: 1fr auto;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 82px;
        left: 24px;
        right: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 24px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: rgba(6, 15, 27, 0.98);
        box-shadow: 0 20px 70px
            rgba(0, 0, 0, 0.36);
    }

    .main-navigation.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 8px 0;
    }

    .nav-link::after {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-content {
        max-width: 800px;
    }

    .hero-status {
        max-width: 620px;
        justify-self: start;
    }

    .city-grid {
        grid-template-columns: repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .applications-grid,
    .news-grid {
        grid-template-columns: repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .footer-layout {
        grid-template-columns: 1fr;
        padding: 40px 0;
        text-align: center;
    }

    .footer-brand,
    .footer-copy {
        align-items: center;
    }

    .footer-links {
        justify-content: center;
    }

}

@media (
    max-width: 700px
) {
    .container {
        width: calc(
                100% - 32px
            );
    }

    .site-header,
    .header-layout {
        height: 72px;
    }

    .main-navigation {
        top: 72px;
        left: 16px;
        right: 16px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-text strong {
        font-size: 13px;
    }

    .brand-text span {
        display: none;
    }

    .header-login {
        display: none;
    }

    .hero-section {
        min-height: auto;
        padding: 76px 0 70px;
    }

    .hero-title {
        display: block;
        font-size: clamp(
                58px,
                19vw,
                90px
            );
    }

    .hero-title span {
        display: block;
    }

    .hero-title span:last-child {
        margin-top: 6px;
    }

    .hero-subtitle {
        font-size: 14px;
        line-height: 1.6;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
        min-width: 0;
    }

    .hero-tags {
        display: none;
    }

    .status-card-body {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .status-item {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding: 0 0 18px;
    }

    .status-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .section-heading {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 18px;
    }

    .section-link {
        justify-self: start;
    }

    .city-section,
    .applications-section,
    .news-section {
        padding: 80px 0;
    }

    .city-grid,
    .applications-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }

}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image: linear-gradient(
            rgba(100, 170, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(100, 170, 255, 0.025) 1px,
            transparent 1px
        );
    background-size: 60px 60px;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.header-login {
    min-width: 120px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid rgba(104, 178, 255, 0.26);
    border-radius: 8px;
    background: linear-gradient(
            145deg,
            rgba(22, 50, 87, 0.58),
            rgba(8, 23, 39, 0.64)
        );
    color: #dcecff;
    font-size: 12px;
    box-shadow: inset 0 0 20px rgba(56, 133, 255, 0.04);
    transition: transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.header-login:hover {
    transform: translateY(-2px);
    border-color: rgba(109, 202, 255, 0.55);
    box-shadow: 0 8px 24px rgba(43, 121, 255, 0.14);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
            90deg,
            rgba(4, 10, 19, 0.98) 0%,
            rgba(5, 12, 22, 0.93) 28%,
            rgba(5, 12, 22, 0.65) 52%,
            rgba(5, 12, 22, 0.52) 72%,
            rgba(4, 10, 18, 0.88) 100%
        );
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
            circle at 70% 45%,
            rgba(53, 130, 255, 0.13),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            transparent 62%,
            rgba(5, 11, 20, 0.96)
        );
}

.hero-title span:last-child {
    color: transparent;
    background: linear-gradient(
            180deg,
            #8edfff 0%,
            #4ea6ff 48%,
            #3270ff 100%
        );
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(
            0 0 24px
            rgba(63, 136, 255, 0.12)
        );
}

.button {
    min-width: 190px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.04em;
}

.button::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-110%);
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.12),
            transparent
        );
    transition: transform 0.4s ease;
}

.button:hover::before {
    transform: translateX(110%);
}

.button-primary {
    border: 1px solid rgba(112, 197, 255, 0.5);
    background: linear-gradient(
            100deg,
            #2f72f6 0%,
            #2459c8 55%,
            #173f98 100%
        );
    color: #ffffff;
    box-shadow: 0 12px 34px rgba(38, 108, 255, 0.18),
        inset 0 0 22px rgba(109, 200, 255, 0.08);
}

.button-primary:hover {
    box-shadow: 0 16px 42px rgba(38, 123, 255, 0.28),
        inset 0 0 24px rgba(109, 200, 255, 0.12);
}

.button-secondary {
    border: 1px solid rgba(126, 167, 219, 0.24);
    background: linear-gradient(
            145deg,
            rgba(9, 22, 38, 0.8),
            rgba(6, 16, 29, 0.72)
        );
    color: #ffffff;
}

.button-secondary:hover {
    border-color: rgba(114, 200, 255, 0.45);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr)
        minmax(280px, 420px);
    align-items: end;
    gap: 40px;
    margin-bottom: 46px;
    position: relative;
}

.section-eyebrow {
    margin: 0 0 12px;
    color: #5bc8ff;
    font-size: 10px;
    letter-spacing: 0.22em;
    font-weight: 700;
}

.section-heading h2,
.cta-layout h2 {
    color: #f5f8ff;
    font-weight: 800;
}

.city-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(105, 161, 226, 0.14);
    border-radius: 14px;
    background: linear-gradient(
            160deg,
            rgba(10, 24, 40, 0.88),
            rgba(5, 14, 24, 0.96)
        );
    transition: transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
    position: relative;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.12);
}

.city-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(
            135deg,
            rgba(72, 157, 255, 0.08),
            transparent 55%
        );
    transition: opacity 0.25s ease;
}

.city-card:hover {
    transform: translateY(-8px);
    border-color: rgba(92, 194, 255, 0.32);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.22),
        0 0 24px rgba(51, 127, 255, 0.05);
}

.city-card:hover::before {
    opacity: 1;
}

.city-card-media {
    position: relative;
    width: 100%;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(
            145deg,
            rgba(11, 30, 50, 0.72),
            rgba(5, 16, 28, 0.94)
        );
    border-bottom: 1px solid rgba(100, 180, 255, 0.08);
}

.city-card-media img {
    display: block;
    width: auto;
    height: auto;
    max-width: 280px;
    max-height: 145px;
    object-fit: contain;
    object-position: center;
    margin: auto;
    filter: drop-shadow(
            0 10px 18px
            rgba(0, 0, 0, 0.35)
        );
}

.application-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -80px;
    top: -80px;
    border-radius: 50%;
    background: rgba(44, 118, 255, 0.1);
    filter: blur(60px);
}

@media (max-width: 1100px) {
    .hero-section {
        padding: 70px 0 90px;
    }

    .hero-status {
        justify-self: stretch;
        max-width: 620px;
    }

}

@media (max-width: 700px) {
    .hero-title {
        line-height: 0.9;
    }

    .hero-eyebrow {
        letter-spacing: 0.18em;
    }

    .status-card {
        border-radius: 14px;
    }

    .city-card:hover,
    .application-card:hover,
    .news-card:hover {
        transform: none;
    }

    .brand-logo img {
        width: 32px;
        height: 32px;
        object-fit: contain;
    }

}

.application-card {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #08111c;
    position: relative;
    overflow: hidden;
    transition: transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
    color: #ffffff;
}

.application-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.application-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease,
        filter 0.5s ease;
}

.application-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            180deg,
            rgba(4, 10, 18, 0.05) 0%,
            rgba(4, 10, 18, 0.18) 35%,
            rgba(4, 10, 18, 0.82) 68%,
            rgba(4, 10, 18, 0.98) 100%
        );
}

.application-content {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 24px;
    z-index: 3;
}

.application-type {
    margin: 12px 0 5px;
    color: var(--cyan);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.application-content h3 {
    margin: 0 0 7px;
    color: #ffffff;
    font-size: 24px;
    letter-spacing: 0.05em;
}

.application-content > p:last-child {
    margin: 0;
    color: #aabbd0;
    font-size: 13px;
}

.application-card:hover {
    transform: translateY(-7px);
    border-color: rgba(92, 194, 255, 0.34);
    box-shadow: 0 28px 70px
        rgba(0, 0, 0, 0.28);
}

.application-card:hover
.application-media img {
    transform: scale(1.06);
    filter: brightness(1.07)
        saturate(1.08);
}

.news-section {
    position: relative;
    background: radial-gradient(
            circle at 80% 20%,
            rgba(46, 120, 255, 0.06),
            transparent 35%
        );
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(
            3,
            minmax(0, 1fr)
        );
    gap: 18px;
}

.news-card {
    min-height: 250px;
    padding: 26px;
    border: 1px solid rgba(110, 170, 230, 0.14);
    border-radius: 16px;
    background: linear-gradient(
            145deg,
            rgba(9, 23, 39, 0.88),
            rgba(5, 14, 24, 0.96)
        );
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 50px
        rgba(0, 0, 0, 0.12);
}

.news-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -90px;
    right: -80px;
    border-radius: 50%;
    background: rgba(43, 126, 255, 0.1);
    filter: blur(60px);
    pointer-events: none;
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(92, 194, 255, 0.3);
    box-shadow: 0 28px 70px
        rgba(0, 0, 0, 0.22);
}

.news-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.news-category {
    color: var(--cyan);
    font-size: 9px;
    letter-spacing: 0.16em;
    display: inline-flex;
    padding: 5px 10px;
    border: 1px solid rgba(91, 193, 255, 0.22);
    border-radius: 999px;
    background: rgba(43, 116, 190, 0.08);
    align-items: center;
    font-weight: 700;
}

.news-card h3 {
    margin: 28px 0 12px;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.4;
}

.news-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 28px;
    color: var(--cyan);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    transition: gap 0.2s ease,
        color 0.2s ease;
}

.news-link:hover {
    gap: 18px;
    color: #ffffff;
}

@media (max-width: 1100px) {
    .news-grid {
        grid-template-columns: repeat(
                2,
                minmax(0, 1fr)
            );
    }

}

@media (max-width: 700px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card:hover {
        transform: none;
    }

}

.cta-section {
    padding: 70px 0 120px;
}

.cta-layout {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 32px;
    border: 1px solid rgba(101, 169, 255, 0.18);
    border-radius: 24px;
    background: radial-gradient(
            circle at 50% 35%,
            rgba(47, 126, 255, 0.18),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            rgba(10, 25, 42, 0.94),
            rgba(4, 12, 22, 0.98)
        );
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.cta-layout::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(
            rgba(92, 175, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(92, 175, 255, 0.025) 1px,
            transparent 1px
        );
    background-size: 46px 46px;
}

.cta-layout::after {
    content: "";
    position: absolute;
    width: 480px;
    height: 200px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(40, 125, 255, 0.12);
    filter: blur(100px);
    pointer-events: none;
}

.cta-layout > * {
    position: relative;
    z-index: 2;
}

.cta-kicker {
    color: var(--cyan);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.24em;
}

.cta-layout h2 {
    max-width: 900px;
    margin: 14px 0 0;
    font-size: clamp(
            42px,
            5.5vw,
            76px
        );
    letter-spacing: -0.05em;
    line-height: 0.98;
}

.cta-layout h2 span {
    display: block;
    margin-top: 6px;
    background: linear-gradient(
            180deg,
            #94e3ff,
            #4ca2ff 55%,
            #2f72f6
        );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-layout p {
    max-width: 620px;
    margin: 22px auto 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.cta-actions {
    display: flex;
    gap: 14px;
    margin-top: 32px;
}

.site-footer {
    border-top: 1px solid rgba(100, 160, 230, 0.12);
    background: linear-gradient(
            180deg,
            rgba(4, 10, 18, 0.84),
            rgba(3, 8, 15, 0.98)
        );
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(
            900px,
            80%
        );
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
            90deg,
            transparent,
            rgba(85, 207, 255, 0.42),
            transparent
        );
}

.footer-layout {
    min-height: 160px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 34px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(103, 192, 255, 0.26);
    border-radius: 10px;
    background: linear-gradient(
            145deg,
            rgba(47, 109, 255, 0.2),
            rgba(9, 23, 39, 0.86)
        );
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.footer-brand strong {
    font-size: 14px;
    letter-spacing: 0.1em;
    display: block;
    color: #ffffff;
}

.footer-brand span {
    margin-top: 5px;
    color: #6f849c;
    font-size: 8px;
    letter-spacing: 0.14em;
    display: block;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: center;
}

.footer-links a {
    color: #879bb1;
    font-size: 11px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    color: #61768c;
    font-size: 9px;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

@keyframes status-pulse {
    0%,
    100% {
        box-shadow: 0 0 10px
            rgba(78, 243, 164, 0.45);
    }

    50% {
        box-shadow: 0 0 22px
            rgba(78, 243, 164, 0.85);
    }

}

.status-indicator.online {
    background: var(--green);
    box-shadow: 0 0 18px
        rgba(78, 243, 164, 0.8);
    animation: status-pulse
        2s
        infinite;
}

@media (max-width: 800px) {
    .footer-layout {
        grid-template-columns: 1fr;
        padding: 44px 0;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .footer-copy {
        align-items: center;
    }

}

@media (max-width: 700px) {
    .cta-section {
        padding: 40px 0 80px;
    }

    .cta-layout {
        min-height: 360px;
        padding: 52px 20px;
    }

    .cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .cta-actions .button {
        width: 100%;
    }

}

.hero-title,
.section-heading h2,
.cta-layout h2 {
    font-family: var(--font-main);
    font-weight: 900;
}

.footer-logo img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(
            0 0 10px
            rgba(88, 188, 255, 0.18)
        );
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(75, 154, 255, 0.12),
            rgba(99, 201, 255, 0.28),
            rgba(75, 154, 255, 0.12),
            transparent
        );
    pointer-events: none;
}

.brand-logo {
    background: linear-gradient(
            145deg,
            rgba(47, 109, 255, 0.28),
            rgba(9, 23, 39, 0.9)
        );
    border: 1px solid rgba(103, 192, 255, 0.3);
    color: #85dfff;
    box-shadow: inset 0 0 20px rgba(58, 151, 255, 0.06),
        0 0 26px rgba(55, 143, 255, 0.08);
    overflow: hidden;
}

.brand-text strong {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.brand-text span {
    font-weight: 500;
}

.nav-link {
    position: relative;
    padding: 30px 0 28px;
    color: #8ea3ba;
    font-size: 11px;
    transition: color 0.2s ease;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.nav-link::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 16px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cyan);
    transform: translateX(-50%)
        scale(0);
    opacity: 0;
    box-shadow: 0 0 12px
        rgba(85, 207, 255, 0.7);
    transition: 0.2s ease;
}

.nav-link.active::before {
    opacity: 1;
    transform: translateX(-50%)
        scale(1);
}

.hero-section .container {
    position: relative;
}

.hero-section .container::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 66%;
    transform: translateY(-50%);
    background: linear-gradient(
            180deg,
            transparent,
            rgba(85, 207, 255, 0.2),
            transparent
        );
}

.hero-section .container::after {
    content: "RAINTOWN / ROLEPLAY / 2026";
    position: absolute;
    right: -48px;
    top: 50%;
    transform: translateY(-50%)
        rotate(90deg);
    color: rgba(155, 180, 210, 0.26);
    font-size: 7px;
    letter-spacing: 0.26em;
    white-space: nowrap;
}

.hero-eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    flex-shrink: 0;
    background: linear-gradient(
            90deg,
            var(--blue),
            var(--cyan)
        );
    box-shadow: 0 0 10px
        rgba(85, 207, 255, 0.32);
}

.hero-title::after {
    content: "";
    position: absolute;
    left: 4px;
    bottom: -18px;
    width: 72px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
            90deg,
            var(--blue),
            var(--cyan)
        );
    box-shadow: 0 0 14px
        rgba(85, 207, 255, 0.28);
}

.hero-actions .button-secondary {
    min-width: 170px;
}

.status-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(72, 160, 255, 0.55),
            rgba(104, 218, 255, 0.7),
            transparent
        );
}

.section-heading > div {
    position: relative;
    padding-left: 18px;
}

.section-heading > div::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 2px;
    height: 44px;
    background: linear-gradient(
            180deg,
            var(--cyan),
            transparent
        );
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(
            34px,
            4vw,
            62px
        );
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.city-card::after,
.application-card::after,
.news-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 1px 0
        rgba(255, 255, 255, 0.025);
}

.card-number {
    color: var(--cyan);
    font-size: 10px;
    letter-spacing: 0.12em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 22px;
    border: 1px solid rgba(91, 193, 255, 0.2);
    border-radius: 999px;
    background: rgba(43, 116, 190, 0.08);
    font-weight: 700;
    font-family: var(--font-main);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #040a12;
}

::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(
            180deg,
            #275bc2,
            #4baee8
        );
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
            180deg,
            #3474ef,
            #5bcfff
        );
}

::selection {
    background: rgba(63, 127, 255, 0.36);
    color: #ffffff;
}

@media (max-width: 1100px) {
    .hero-section .container::after {
        display: none;
    }

    .hero-section .container::before {
        display: none;
    }

}

@media (max-width: 700px) {
    .hero-title::after {
        bottom: -12px;
        width: 52px;
    }

    .hero-actions {
        margin-top: 34px;
    }

    .section-heading > div {
        padding-left: 14px;
    }

}

body {
    margin: 0;
    background: radial-gradient(
            circle at 72% 18%,
            rgba(49, 115, 255, 0.13),
            transparent 28%
        ),
        radial-gradient(
            circle at 18% 70%,
            rgba(50, 202, 255, 0.07),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #050913 0%,
            #07101c 45%,
            #050914 100%
        );
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
}

.hero-description,
.section-description,
.city-card p,
.application-card p,
.news-card p,
.cta-layout p {
    font-family: var(--font-thai);
}

.intro-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    overflow: hidden;
    min-height: 100dvh;
    padding: 28px;
    background: #02060d;
    transition: opacity 0.65s ease,
        visibility 0.65s ease,
        transform 0.65s ease;
}

.intro-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.015);
}

.intro-bg {
    position: absolute;
    inset: -3%;
    background: url("../assets/images/hero-city.jpg")
        center 46% / cover no-repeat;
    filter: brightness(0.36)
        saturate(0.92)
        contrast(1.08);
    transform: scale(1.04);
}

.intro-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
            circle at 50% 43%,
            rgba(55, 129, 255, 0.18),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            rgba(2, 6, 13, 0.40) 0%,
            rgba(2, 6, 13, 0.66) 50%,
            rgba(2, 6, 13, 0.94) 100%
        );
}

.intro-content {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.intro-logo-wrap {
    width: min(340px, 72vw);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 34px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.intro-logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.42))
        drop-shadow(0 0 26px rgba(55, 154, 255, 0.14));
}

.intro-kicker {
    margin: 0;
    color: #c6d3e3;
    font-family: var(--font-main);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.30em;
    text-transform: uppercase;
}

.intro-title {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin: 18px 0 0;
    font-family: var(--font-main);
    font-size: clamp(60px, 8.3vw, 112px);
    line-height: 0.88;
    font-weight: 900;
    letter-spacing: -0.065em;
    text-transform: uppercase;
}

.intro-title span:first-child {
    color: #ffffff;
}

.intro-title span:last-child {
    background: linear-gradient(
            180deg,
            #a4ecff 0%,
            #61b8ff 48%,
            #3c75f0 100%
        );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.intro-description {
    margin: 22px 0 0;
    color: #9baec4;
    font-family: var(--font-main);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.intro-enter-btn {
    position: relative;
    min-width: 210px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 34px;
    padding: 0 26px;
    overflow: hidden;
    border: 1px solid rgba(111, 199, 255, 0.52);
    border-radius: 8px;
    background: linear-gradient(
            100deg,
            #2d6fe8,
            #2455bd
        );
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    cursor: pointer;
    box-shadow: 0 14px 38px rgba(23, 83, 196, 0.24);
    transition: transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.intro-enter-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%);
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.17),
            transparent
        );
    transition: transform 0.5s ease;
}

.intro-enter-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(140, 218, 255, 0.76);
    box-shadow: 0 18px 46px rgba(23, 83, 196, 0.34);
}

.intro-enter-btn:hover::before {
    transform: translateX(120%);
}

.intro-bottom-text {
    margin-top: 22px;
    color: #60758d;
    font-family: var(--font-main);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.28em;
}

@media (max-width: 700px) {
    .intro-screen {
        padding: 22px 18px;
    }

    .intro-logo-wrap {
        width: min(260px, 72vw);
        margin-bottom: 28px;
    }

    .intro-title {
        display: block;
        font-size: clamp(54px, 18vw, 82px);
        line-height: 0.86;
    }

    .intro-title span {
        display: block;
    }

    .intro-title span:last-child {
        margin-top: 7px;
    }

    .intro-kicker {
        font-size: 7px;
        letter-spacing: 0.22em;
    }

    .intro-description {
        font-size: 8px;
        letter-spacing: 0.18em;
    }

    .intro-enter-btn {
        width: min(280px, 100%);
    }

}

@media (max-height: 760px) and (min-width: 701px) {
    .intro-logo-wrap {
        width: 250px;
        margin-bottom: 22px;
    }

    .intro-title {
        font-size: clamp(54px, 7vw, 88px);
    }

    .intro-enter-btn {
        margin-top: 26px;
    }

}

.hero-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
    padding: 80px 0;
    border-bottom: 1px solid
        rgba(93, 165, 255, 0.1);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-background-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            90deg,
            rgba(4, 10, 18, 0.97) 0%,
            rgba(4, 10, 18, 0.92) 27%,
            rgba(4, 10, 18, 0.63) 48%,
            rgba(4, 10, 18, 0.28) 69%,
            rgba(4, 10, 18, 0.65) 100%
        ),

        linear-gradient(
            180deg,
            rgba(4, 10, 18, 0.2) 0%,
            transparent 40%,
            rgba(4, 10, 18, 0.18) 65%,
            rgba(4, 10, 18, 0.96) 100%
        );
}

.hero-background-grid {
    position: absolute;
    inset: 0;
    opacity: 0.24;
    background-image: linear-gradient(
            rgba(101, 174, 255, 0.05) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(101, 174, 255, 0.05) 1px,
            transparent 1px
        );
    background-size: 74px 74px;
    mask-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.5),
            transparent 82%
        );
}

.hero-section > .container {
    position: relative;
    z-index: 4;
}

.hero-content {
    max-width: 780px;
    animation: fade-up
        0.8s
        ease
        both;
}

.hero-eyebrow {
    margin: 0 0 24px;
    color: #a2b4c9;
    font-size: 10px;
    letter-spacing: 0.3em;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0;
    font-size: clamp(
            78px,
            8.2vw,
            136px
        );
    line-height: 0.82;
    letter-spacing: -0.075em;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.04);
    position: relative;
    font-weight: 900;
}

.hero-title-rain {
    color: #ffffff;
    text-shadow: 0 0 28px rgba(255, 255, 255, 0.06);
}

.hero-title-town {
    background: linear-gradient(
            180deg,
            #a4e6ff 0%,
            #5caeff 50%,
            #3472ef 100%
        );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(
            0 0 28px
            rgba(55, 136, 255, 0.13)
        );
}

.hero-subtitle {
    margin: 25px 0 0;
    font-size: clamp(
            15px,
            1.5vw,
            22px
        );
    letter-spacing: 0.13em;
    font-weight: 600;
    color: #f0f5ff;
}

.hero-description {
    max-width: 610px;
    margin: 20px 0 0;
    color: #acbccf;
    font-size: 16px;
    line-height: 1.8;
    font-family: var(--font-thai);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.hero-actions .button {
    min-width: 200px;
}

.hero-actions .button-primary {
    min-width: 210px;
    gap: 26px;
}

.hero-tags {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 62px;
    position: relative;
}

.hero-tags::before {
    content: "";
    width: 32px;
    height: 2px;
    background: linear-gradient(
            90deg,
            #3f80ff,
            #64d3ff
        );
    box-shadow: 0 0 12px rgba(85, 207, 255, 0.35);
    flex-shrink: 0;
}

.hero-tags span {
    position: relative;
    color: #71859d;
    font-size: 8px;
    letter-spacing: 0.18em;
    font-weight: 600;
}

.hero-side-label {
    position: absolute;
    z-index: 5;
    display: flex;
    flex-direction: column;
    color: rgba(184, 203, 225, 0.42);
    font-size: 7px;
    letter-spacing: 0.28em;
    pointer-events: none;
}

.hero-side-left {
    left: 22px;
    top: 48%;
}

.hero-side-right {
    right: 18px;
    top: 32%;
    align-items: flex-end;
}

.hero-status {
    width: 100%;
    max-width: 470px;
    justify-self: end;
    animation: fade-up
        0.85s
        0.12s
        ease
        both;
}

.status-card {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(106, 173, 255, 0.24);
    border-radius: 16px;
    background: linear-gradient(
            155deg,
            rgba(10, 24, 41, 0.94),
            rgba(5, 14, 25, 0.96)
        );
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42),
        inset 0 0 44px rgba(44, 108, 255, 0.035);
    backdrop-filter: blur(18px);
    position: relative;
}

.status-card::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    top: -150px;
    right: -110px;
    border-radius: 50%;
    background: rgba(47, 126, 255, 0.12);
    filter: blur(80px);
    pointer-events: none;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 13px;
}

.server-status-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-server-info {
    padding: 26px 24px 10px;
    text-align: left;
}

.status-server-info h3 {
    margin: 9px 0 5px;
    color: #ffffff;
    font-size: 20px;
    letter-spacing: 0.03em;
}

.status-server-info p {
    margin: 0;
    color: #71869c;
    font-size: 11px;
}

.status-card-body {
    display: grid;
    grid-template-columns: repeat(
            3,
            minmax(0, 1fr)
        );
    padding: 22px 12px;
}

.status-item {
    padding: 0 16px;
    border-right: 1px solid var(--line);
}

.status-item:last-child {
    border-right: 0;
}

.status-label {
    display: block;
    margin-bottom: 9px;
    color: #738aa1;
    font-size: 8px;
    letter-spacing: 0.14em;
}

.status-value {
    display: block;
    color: #ffffff;
    font-size: 19px;
    letter-spacing: -0.02em;
}

.status-capacity {
    padding: 0 28px 24px;
}

.status-capacity-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #61778e;
    font-size: 8px;
    letter-spacing: 0.12em;
}

.status-progress {
    height: 4px;
    margin: 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(79, 113, 157, 0.2);
}

.status-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
            90deg,
            #3478ff,
            #62d5ff
        );
    transition: width 0.35s ease;
    box-shadow: 0 0 14px rgba(85, 207, 255, 0.4);
}

.status-card-footer {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 24px;
    border-top: 1px solid var(--line);
    color: #526c85;
    font-size: 8px;
    letter-spacing: 0.09em;
}

.hero-scroll-indicator {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(164, 188, 215, 0.4);
    font-size: 7px;
    letter-spacing: 0.2em;
}

.hero-scroll-indicator div {
    width: 1px;
    height: 30px;
    background: linear-gradient(
            180deg,
            rgba(89, 189, 255, 0.55),
            transparent
        );
}

@media (max-width: 1100px) {
    .hero-content {
        max-width: 820px;
    }

    .hero-status {
        max-width: 620px;
        justify-self: start;
    }

    .hero-side-label {
        display: none;
    }

}

@media (max-width: 700px) {
    .hero-section {
        min-height: auto;
    }

    .hero-background img {
        object-position: 63% center;
    }

    .hero-title {
        display: block;
        font-size: clamp(
                58px,
                19vw,
                92px
            );
    }

    .hero-title span {
        display: block;
    }

    .hero-title-town {
        margin-top: 7px;
    }

    .hero-subtitle {
        font-size: 13px;
        line-height: 1.55;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .button {
        width: 100%;
        min-width: 0;
    }

    .hero-tags {
        display: none;
    }

    .status-card-body {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 10px 24px;
    }

    .status-item {
        padding: 15px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .status-item:last-child {
        border-bottom: 0;
    }

    .status-card-footer {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 15px 24px;
    }

    .hero-scroll-indicator {
        display: none;
    }

}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 100;
    background: linear-gradient(
            180deg,
            rgba(4, 10, 18, 0.96),
            rgba(5, 12, 21, 0.82)
        );
    border-bottom: 1px solid rgba(108, 168, 255, 0.16);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
    transition: background 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.site-header.scrolled {
    background: rgba(4, 10, 18, 0.94);
    border-bottom-color: rgba(98, 176, 255, 0.22);
    box-shadow: 0 12px 40px
        rgba(0, 0, 0, 0.28);
}

.mobile-menu-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    margin: 5px auto;
    border-radius: 10px;
    background: #ffffff;
    transition: transform 0.25s ease,
        opacity 0.25s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px)
        rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px)
        rotate(-45deg);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease,
        transform 0.7s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.city-card:nth-child(2),
.application-card:nth-child(2),
.news-card:nth-child(2) {
    animation-delay: 0.08s;
    transition-delay: 0.07s;
}

.city-card:nth-child(3),
.application-card:nth-child(3),
.news-card:nth-child(3) {
    animation-delay: 0.16s;
    transition-delay: 0.14s;
}

.city-card:nth-child(4) {
    animation-delay: 0.24s;
    transition-delay: 0.21s;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
    display: block;
    transform: scale(1.025);
    filter: brightness(0.66)
        saturate(0.92)
        contrast(1.04);
    will-change: transform;
    transition: transform 0.08s linear;
}

@media (max-width: 1100px) {
    .main-navigation {
        visibility: hidden;
        opacity: 0;
        transform: translateY(-12px);
        pointer-events: none;
        display: flex;
        position: absolute;
        top: 82px;
        left: 24px;
        right: 24px;
        padding: 22px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        border: 1px solid
            rgba(
                105,
                174,
                255,
                0.2
            );
        border-radius: 14px;
        background: rgba(
                5,
                15,
                27,
                0.97
            );
        backdrop-filter: blur(18px);
        box-shadow: 0 24px 70px
            rgba(
                0,
                0,
                0,
                0.38
            );
        transition: opacity 0.22s ease,
            transform 0.22s ease,
            visibility 0.22s ease;
    }

    .main-navigation.open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .main-navigation .nav-link {
        width: 100%;
        padding: 14px 12px;
        border-radius: 8px;
        color: #9eb0c4;
    }

    .main-navigation .nav-link:hover,
    .main-navigation .nav-link.active {
        color: #ffffff;
        background: rgba(
                43,
                108,
                190,
                0.12
            );
    }

    .main-navigation
    .nav-link::before,
    .main-navigation
    .nav-link::after {
        display: none;
    }

}

@media (
    prefers-reduced-motion:
    reduce
) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

}

.city-card-content {
    padding: 22px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
}

.card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 22px;
    color: #7b93aa;
    font-family: var(--font-main);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    transition: color 0.2s ease;
}

.card-action > span {
    color: var(--cyan);
    font-size: 14px;
    transition: transform 0.25s ease;
}

.city-card:hover .card-action {
    color: #ffffff;
}

.city-card:hover
.card-action > span {
    transform: translate(
            3px,
            -3px
        );
}

.city-card-media::before {
    z-index: 2;
}

.city-card-media::after {
    content: "";
    position: absolute;
    inset: 12px;
    z-index: 3;
    border: 1px solid
        rgba(
            255,
            255,
            255,
            0.035
        );
    border-radius: 8px;
    pointer-events: none;
}

.city-card:hover
.city-card-media::after {
    border-color: rgba(
            104,
            202,
            255,
            0.13
        );
}

.application-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid
        rgba(
            123,
            169,
            224,
            0.12
        );
    color: #9aadc2;
    font-family: var(--font-main);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.application-action > span {
    color: var(--cyan);
    font-size: 14px;
    transition: transform 0.25s ease;
}

.application-card:hover
.application-action > span {
    transform: translate(
            3px,
            -3px
        );
}

.status-card-header {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 16, 29, 0.42);
    position: relative;
}

.status-card-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(
                84,
                186,
                255,
                0.22
            ),
            transparent
        );
}

.server-status-label {
    color: #667e97;
    font-size: 8px;
    letter-spacing: 0.14em;
    font-weight: 600;
}

.status-text {
    color: #dfeaff;
    font-size: 11px;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.status-stable {
    color: var(--green);
    font-size: 9px;
    letter-spacing: 0.14em;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.status-stable::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: #4ef3a4;
    box-shadow: 0 0 10px
        rgba(
            78,
            243,
            164,
            0.75
        );
}

.status-server-code {
    color: var(--cyan);
    font-size: 8px;
    letter-spacing: 0.2em;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid
        rgba(
            91,
            192,
            255,
            0.18
        );
    border-radius: 999px;
    background: rgba(
            38,
            110,
            190,
            0.08
        );
}

.news-date {
    color: #71879d;
    font-size: 8px;
    letter-spacing: 0.12em;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}

.news-link span {
    display: inline-block;
    transition: transform 0.25s ease;
}

.news-link:hover span {
    transform: translateX(4px);
}

.city-card,
.application-card,
.news-card {
    animation: fade-up
        0.65s
        ease
        both;
    isolation: isolate;
    position: relative;
}

.city-card::before,
.application-card::before,
.news-card::before {
    content: "";
    position: absolute;
    left: 20%;
    right: 20%;
    top: -1px;
    height: 1px;
    z-index: 5;
    opacity: 0;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(
                106,
                211,
                255,
                0.6
            ),
            transparent
        );
    transition: opacity 0.25s ease;
}

.city-card:hover::before,
.application-card:hover::before,
.news-card:hover::before {
    opacity: 1;
}

@media (max-width: 700px) {
    .card-action,
    .application-action {
        font-size: 8px;
    }

    .city-card-content {
        min-height: 140px;
    }

}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(
            0 0 10px
            rgba(88, 188, 255, 0.24)
        );
    display: block;
    border-radius: 14px;
}

.brand-wordmark,
.brand img {
    width: auto !important;
    height: 46px !important;
    max-width: 150px !important;
    max-height: 46px !important;
    object-fit: contain !important;
    position: static !important;
    transform: none !important;
}

.hero-layout {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 120px);
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 0;
    padding: 140px 0 90px;
}

/* =========================================================
   RAINTOWN FINAL LAYOUT
   Header logo: top-left
   Hero: one column
   Server status: disabled
   This block intentionally owns the final home-page layout.
========================================================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;
    height: 120px;

    background:
        linear-gradient(
            180deg,
            rgba(3, 9, 16, 0.94) 0%,
            rgba(3, 9, 16, 0.58) 62%,
            rgba(3, 9, 16, 0) 100%
        );

    border-bottom: 1px solid rgba(100, 190, 255, 0.10);
}

.header-layout {
    position: relative;

    width: min(var(--container), calc(100% - 48px));
    height: 120px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 32px;
}

/* Supports both the old .brand-logo markup
   and the newer .brand-wordmark markup. */

.brand {
    position: relative !important;

    width: 240px !important;
    max-width: 240px !important;
    height: 92px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    flex: 0 0 240px !important;

    overflow: hidden !important;
}

.brand-text {
    display: none !important;
}

.brand-logo {
    width: 220px !important;
    height: 82px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    overflow: hidden !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    box-shadow: none !important;
}

.brand-logo img,
.brand-wordmark,
.brand img.brand-wordmark {
    position: static !important;

    display: block !important;

    width: 220px !important;
    height: 82px !important;

    max-width: 220px !important;
    max-height: 82px !important;

    margin: 0 !important;

    object-fit: contain !important;
    object-position: left center !important;

    border-radius: 0 !important;

    transform: none !important;

    filter:
        drop-shadow(
            0 6px 18px
            rgba(0, 0, 0, 0.24)
        ) !important;
}

.main-navigation {
    position: static;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 30px;

    margin-left: auto;
}

.main-navigation .nav-link,
.main-navigation > a {
    position: relative;

    padding: 18px 0;

    color: #a9b9cb;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
}

.main-navigation .nav-link:hover,
.main-navigation .nav-link.active,
.main-navigation > a:hover {
    color: #ffffff;
}

.header-actions {
    display: flex;
    align-items: center;

    flex: 0 0 auto;
}

.hero-section {
    position: relative;

    min-height: 100vh;

    display: block;

    padding: 0;

    overflow: hidden;

    isolation: isolate;
}

.hero-background {
    position: absolute;
    inset: 0;

    z-index: 0;

    overflow: hidden;

    pointer-events: none;
}

.hero-background img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: none;

    object-fit: cover;
    object-position: center 48%;

    transform: scale(1.025);

    filter:
        brightness(0.66)
        saturate(0.92)
        contrast(1.04);
}

.hero-background-overlay,
.hero-background-grid {
    position: absolute;
    inset: 0;
}

.hero-section > .container {
    position: relative;

    z-index: 4;
}

.hero-layout {
    position: relative;

    z-index: 2;

    min-height: 100vh;

    display: grid;

    grid-template-columns: minmax(0, 1fr);

    align-items: center;

    gap: 0;

    padding: 150px 0 90px;
}

.hero-content {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 760px;
}

/* The user requested no server status panel on the home hero. */

.hero-status,
.status-card {
    display: none !important;
}

/* =========================================================
   FINAL RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    .site-header,
    .header-layout {
        height: 92px;
    }

    .header-layout {
        width: min(var(--container), calc(100% - 36px));
    }

    .brand {
        width: 190px !important;
        max-width: 190px !important;
        height: 74px !important;

        flex-basis: 190px !important;
    }

    .brand-logo {
        width: 178px !important;
        height: 66px !important;
    }

    .brand-logo img,
    .brand-wordmark,
    .brand img.brand-wordmark {
        width: 178px !important;
        height: 66px !important;

        max-width: 178px !important;
        max-height: 66px !important;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;

        top: 82px;
        left: 18px;
        right: 18px;

        z-index: 1001;

        visibility: hidden;

        opacity: 0;

        pointer-events: none;

        transform: translateY(-10px);

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 4px;

        margin: 0;

        padding: 18px;

        border: 1px solid rgba(105, 174, 255, 0.20);
        border-radius: 14px;

        background: rgba(5, 15, 27, 0.97);

        backdrop-filter: blur(18px);

        transition:
            opacity 0.22s ease,
            transform 0.22s ease,
            visibility 0.22s ease;
    }

    .main-navigation.open {
        visibility: visible;

        opacity: 1;

        pointer-events: auto;

        transform: translateY(0);
    }

    .main-navigation .nav-link,
    .main-navigation > a {
        width: 100%;

        padding: 13px 12px;

        border-radius: 8px;
    }

    .hero-layout {
        min-height: 100vh;

        padding: 120px 0 72px;
    }
}

@media (max-width: 700px) {
    .site-header,
    .header-layout {
        height: 78px;
    }

    .header-layout {
        width: calc(100% - 28px);

        gap: 12px;
    }

    .brand {
        width: 150px !important;
        max-width: 150px !important;
        height: 64px !important;

        flex-basis: 150px !important;
    }

    .brand-logo {
        width: 140px !important;
        height: 56px !important;
    }

    .brand-logo img,
    .brand-wordmark,
    .brand img.brand-wordmark {
        width: 140px !important;
        height: 56px !important;

        max-width: 140px !important;
        max-height: 56px !important;
    }

    .header-login {
        display: none;
    }

    .main-navigation {
        top: 72px;

        left: 14px;
        right: 14px;
    }

    .hero-layout {
        min-height: 100svh;

        padding: 105px 0 58px;
    }

    .hero-content {
        max-width: 100%;
    }
}

/* =========================================================
   RAINTOWN LOGO SIZE - DEFINITIVE FIX
   Prevent any foreground RainTown logo from covering the hero.
========================================================= */

/* Header / top-left logo */
.site-header .brand,
.site-header .brand-logo {
    width: 210px !important;
    max-width: 210px !important;
    height: 76px !important;
    max-height: 76px !important;

    overflow: hidden !important;
}

.site-header .brand img,
.site-header .brand-logo img,
.site-header .brand-wordmark {
    position: static !important;

    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 200px !important;
    max-height: 68px !important;

    object-fit: contain !important;
    object-position: left center !important;

    margin: 0 !important;

    transform: none !important;
}

/* Any foreground image/logo inside the hero content.
   This does NOT affect .hero-background. */
.hero-section > .container img,
.hero-section .hero-layout img,
.hero-section .hero-content img,
.hero-main-logo,
.hero-logo,
.hero-logo-image,
.hero-brand-logo {
    position: static !important;

    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 300px !important;
    max-height: 180px !important;

    object-fit: contain !important;
    object-position: left center !important;

    margin: 0 0 28px 0 !important;

    transform: none !important;

    z-index: auto !important;
}

/* Keep the actual hero background full-screen. */
.hero-section .hero-background {
    position: absolute !important;
    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    overflow: hidden !important;

    z-index: 0 !important;

    pointer-events: none !important;
}

.hero-section .hero-background img {
    position: absolute !important;
    inset: 0 !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;

    object-fit: cover !important;
    object-position: center 48% !important;

    transform: scale(1.025) !important;
}

/* Hero content must stay above the background. */
.hero-section > .container,
.hero-layout,
.hero-content {
    position: relative !important;
    z-index: 2 !important;
}

/* Home hero has no server-status card. */
.hero-status,
.status-card {
    display: none !important;
}

/* =========================================================
   RESPONSIVE LOGO SIZE
========================================================= */

@media (max-width: 1100px) {
    .site-header .brand,
    .site-header .brand-logo {
        width: 180px !important;
        max-width: 180px !important;
        height: 68px !important;
        max-height: 68px !important;
    }

    .site-header .brand img,
    .site-header .brand-logo img,
    .site-header .brand-wordmark {
        max-width: 170px !important;
        max-height: 60px !important;
    }

    .hero-section > .container img,
    .hero-section .hero-layout img,
    .hero-section .hero-content img,
    .hero-main-logo,
    .hero-logo,
    .hero-logo-image,
    .hero-brand-logo {
        max-width: 260px !important;
        max-height: 155px !important;
    }
}

@media (max-width: 700px) {
    .site-header .brand,
    .site-header .brand-logo {
        width: 145px !important;
        max-width: 145px !important;
        height: 58px !important;
        max-height: 58px !important;
    }

    .site-header .brand img,
    .site-header .brand-logo img,
    .site-header .brand-wordmark {
        max-width: 135px !important;
        max-height: 50px !important;
    }

    .hero-section > .container img,
    .hero-section .hero-layout img,
    .hero-section .hero-content img,
    .hero-main-logo,
    .hero-logo,
    .hero-logo-image,
    .hero-brand-logo {
        max-width: 220px !important;
        max-height: 130px !important;
    }
}
