:root {
    --jsm-navy-950: #030914;
    --jsm-navy-900: #06101e;
    --jsm-navy-850: #0a1728;
    --jsm-navy-800: #0e2035;
    --jsm-blue: #28a8df;
    --jsm-cyan: #75ddff;
    --jsm-gold: #e8cd74;
    --jsm-gold-light: #f7e6a0;
    --jsm-text: #f8fbff;
    --jsm-muted: #b8c6d8;
    --jsm-line: rgba(160, 194, 224, 0.18);
    --jsm-panel: rgba(6, 16, 30, 0.84);
    --jsm-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body.login-body.jsm-public-home {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 18% 8%, rgba(22, 121, 174, 0.18), transparent 32%),
        linear-gradient(180deg, var(--jsm-navy-950) 0%, var(--jsm-navy-900) 46%, #081426 100%);
    color: var(--jsm-text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.login-body.jsm-public-home a,
body.login-body.jsm-public-home button,
body.login-body.jsm-public-home input,
body.login-body.jsm-public-home textarea {
    font: inherit;
}

.jsm-homepage {
    width: 100%;
    margin: 0 auto;
    padding: 0 0 38px;
}

.jsm-public-header {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(250px, 1fr) auto auto;
    align-items: center;
    gap: 28px;
    width: min(1440px, calc(100% - 64px));
    min-height: 76px;
    margin: 0 auto;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid rgba(160, 194, 224, 0.12);
    background: transparent;
    box-shadow: none;
    backdrop-filter: blur(18px);
}

.jsm-public-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: var(--jsm-text);
    text-decoration: none;
}

.jsm-public-brand-logo {
    display: block;
    flex: 0 0 auto;
    width: 78px;
    height: 52px;
    object-fit: contain;
}

.jsm-public-brand > span:last-child {
    display: grid;
    gap: 2px;
}

.jsm-public-brand strong {
    font-size: 15px;
    letter-spacing: 0.03em;
}

.jsm-public-brand small {
    color: #8fa7bf;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.jsm-public-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.jsm-public-nav a {
    color: #c9d7e7;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.jsm-public-nav a:hover {
    color: var(--jsm-gold-light);
}

.jsm-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 0;
    background: rgba(9, 23, 40, 0.54);
}

.jsm-language-switcher a {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    min-height: 34px;
    padding: 0 8px;
    color: #9eb2c8;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.jsm-language-switcher a:hover,
.jsm-language-switcher a.active {
    background: linear-gradient(135deg, var(--jsm-gold), var(--jsm-gold-light));
    color: #07101d;
}

.jsm-home-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(350px, 0.72fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    min-height: calc(100vh - 76px);
    margin-top: 0;
    padding: clamp(54px, 7vw, 110px) max(32px, calc((100vw - 1440px) / 2));
    overflow: hidden;
    border: 0;
    background: #06101e;
    box-shadow: none;
}

.jsm-home-hero::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    content: "";
    background-image:
        linear-gradient(90deg, rgba(3, 9, 20, 0.98) 0%, rgba(3, 9, 20, 0.86) 36%, rgba(3, 9, 20, 0.26) 68%, rgba(3, 9, 20, 0.42) 100%),
        linear-gradient(180deg, rgba(3, 9, 20, 0.18), rgba(3, 9, 20, 0.62)),
        url("../images/jsm-europe-network-hero-v1.png");
    background-position: center, center, center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.01);
}

.jsm-home-hero::after {
    display: none;
}

.jsm-home-content {
    max-width: 680px;
}

.jsm-home-kicker,
.jsm-section-heading > span {
    display: inline-flex;
    margin: 0 0 16px;
    color: var(--jsm-gold);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.jsm-home-content h1 {
    max-width: 700px;
    margin: 0;
    color: #fff;
    font-size: clamp(3.1rem, 6.2vw, 6.4rem);
    font-weight: 850;
    line-height: 0.91;
    letter-spacing: -0.065em;
    text-wrap: balance;
}

.jsm-home-lead {
    max-width: 650px;
    margin: 26px 0 0;
    color: #d4e1ee;
    font-size: clamp(1rem, 1.45vw, 1.18rem);
    font-weight: 630;
    line-height: 1.68;
}

.jsm-home-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.jsm-home-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border: 0;
    background: rgba(5, 18, 33, 0.56);
    color: #d9f3ff;
    font-size: 11px;
    font-weight: 850;
    backdrop-filter: blur(10px);
}

.jsm-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.jsm-home-cta-link,
.jsm-home-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.jsm-home-cta-link {
    background: linear-gradient(135deg, var(--jsm-gold), var(--jsm-gold-light));
    color: #07101d;
    box-shadow: 0 14px 36px rgba(232, 205, 116, 0.18);
}

.jsm-home-secondary-link {
    border: 1px solid rgba(197, 222, 242, 0.28);
    background: rgba(5, 18, 33, 0.66);
    color: #f4f8fc;
}

.jsm-home-cta-link:hover,
.jsm-home-secondary-link:hover {
    transform: translateY(-2px);
}

.jsm-home-secondary-link:hover {
    border-color: var(--jsm-gold);
}

.jsm-network-status {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    margin-top: 30px;
    padding-top: 4px;
    border-top: 0;
}

.jsm-network-status > span:last-child {
    display: grid;
    gap: 3px;
}

.jsm-network-status small {
    color: #8fa7bf;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.jsm-network-status strong {
    color: #dce9f5;
    font-size: 12px;
    font-weight: 850;
}

.jsm-network-pulse {
    position: relative;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #58d78d;
    box-shadow: 0 0 20px rgba(88, 215, 141, 0.72);
}

.jsm-network-pulse::after {
    position: absolute;
    inset: -6px;
    content: "";
    border: 1px solid rgba(88, 215, 141, 0.46);
    border-radius: 50%;
    animation: jsm-pulse 2s ease-out infinite;
}

@keyframes jsm-pulse {
    0% { opacity: 0.7; transform: scale(0.55); }
    100% { opacity: 0; transform: scale(1.35); }
}

.jsm-home-login {
    width: 100%;
}

body.login-body.jsm-public-home .login-card {
    width: 100%;
    max-width: 430px;
    margin-left: auto;
    padding: 30px;
    border: 1px solid rgba(173, 211, 237, 0.18);
    border-radius: 12px;
    background: rgba(5, 14, 27, 0.88);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(22px);
}

.jsm-login-security {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: #9db2c9;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.jsm-login-security > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #58d78d;
    box-shadow: 0 0 12px rgba(88, 215, 141, 0.62);
}

.jsm-login-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.jsm-login-logo {
    display: block;
    flex: 0 0 126px;
    width: 126px;
    height: 86px;
    object-fit: contain;
}

.jsm-login-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 21px;
    line-height: 1.15;
}

body.login-body.jsm-public-home .login-subtitle {
    margin: 5px 0 0;
    color: #91a7bd;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

.login-form {
    display: grid;
    gap: 9px;
}

.login-form label {
    margin-top: 6px;
    color: #dce8f4;
    font-size: 12px;
    font-weight: 850;
}

.login-form input {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(160, 194, 224, 0.26);
    border-radius: 0;
    outline: none;
    background: rgba(11, 29, 49, 0.88);
    color: #fff;
    padding: 0 14px;
    font-size: 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-form input::placeholder {
    color: #72889f;
}

.login-form input:focus {
    border-color: rgba(117, 221, 255, 0.7);
    box-shadow: 0 0 0 3px rgba(40, 168, 223, 0.12);
}

.login-form button {
    min-height: 52px;
    margin-top: 13px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(135deg, var(--jsm-gold), var(--jsm-gold-light));
    color: #07101d;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.login-form button:hover {
    filter: brightness(1.05);
}

.login-error,
.jsm-form-feedback {
    margin: 0 0 16px;
    border: 1px solid rgba(248, 113, 113, 0.38);
    background: rgba(127, 29, 29, 0.22);
    color: #fecaca;
    padding: 12px 13px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.jsm-form-feedback.success {
    border-color: rgba(74, 222, 128, 0.34);
    background: rgba(20, 83, 45, 0.26);
    color: #bbf7d0;
}

.jsm-login-note {
    margin: 16px 0 0;
    color: #7f96ad;
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

.login-powered-by {
    margin: 16px 0 0;
    padding-top: 15px;
    border-top: 1px solid rgba(160, 194, 224, 0.14);
    color: #647b91;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
}

.login-powered-by span {
    color: #b9c9d8;
}

.jsm-home-section {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
    scroll-margin-top: 24px;
    padding: 104px 0 0;
}

.jsm-about-section {
    padding-top: 92px;
}

.jsm-home-intro-card,
.jsm-feature-card,
.jsm-register-card,
.jsm-faq-panel,
.jsm-protocol-card {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.jsm-home-intro-card {
    display: block;
    padding: 0;
    text-align: center;
}

.jsm-home-intro-card h2,
.jsm-section-heading h2,
.jsm-protocol-card h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.jsm-home-intro-card > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 6vw, 72px);
    max-width: 900px;
    margin: 38px auto 0;
    text-align: left;
}

.jsm-home-intro-card > .jsm-home-kicker {
    justify-content: center;
}

.jsm-home-intro-card p,
.jsm-section-heading p,
.jsm-feature-card p,
.jsm-register-card p,
.jsm-faq-panel p,
.jsm-protocol-card p {
    margin: 0;
    color: var(--jsm-muted);
    font-size: 14px;
    font-weight: 620;
    line-height: 1.65;
}

.jsm-section-heading {
    max-width: 720px;
    margin-bottom: 28px;
}

.jsm-section-heading p {
    margin-top: 16px;
    font-size: 15px;
}

.jsm-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(26px, 4vw, 56px);
}

.jsm-feature-card {
    position: relative;
    min-height: 210px;
    padding: 0;
    overflow: hidden;
}

.jsm-feature-card::after {
    display: none;
}

.jsm-feature-card > strong {
    display: inline-block;
    margin-bottom: 42px;
    color: var(--jsm-gold);
    font-size: 11px;
    letter-spacing: 0.12em;
}

.jsm-feature-card h3,
.jsm-register-card h3,
.jsm-faq-panel h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
}

.jsm-register-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(44px, 7vw, 90px);
}

.jsm-register-card,
.jsm-faq-panel {
    padding: 0;
}

.jsm-register-card {
    padding: clamp(24px, 4vw, 40px);
    background: rgba(9, 24, 42, 0.62);
}

.jsm-register-card > p {
    margin-bottom: 22px;
}

.jsm-interest-form {
    position: relative;
    display: grid;
    gap: 14px;
}

.jsm-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.jsm-form-row {
    display: grid;
    gap: 7px;
}

.jsm-form-row label {
    color: #dbe7f3;
    font-size: 12px;
    font-weight: 850;
}

.jsm-form-row input,
.jsm-form-row textarea {
    width: 100%;
    border: 1px solid rgba(160, 194, 224, 0.26);
    border-radius: 0;
    outline: none;
    background: rgba(11, 29, 49, 0.88);
    color: #fff;
    padding: 13px 14px;
    font-size: 14px;
}

.jsm-form-row textarea {
    min-height: 118px;
    resize: vertical;
}

.jsm-form-row input:focus,
.jsm-form-row textarea:focus {
    border-color: rgba(117, 221, 255, 0.7);
    box-shadow: 0 0 0 3px rgba(40, 168, 223, 0.12);
}

.jsm-form-row textarea::placeholder {
    color: #72889f;
}

.jsm-interest-form button {
    min-height: 52px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(135deg, var(--jsm-gold), var(--jsm-gold-light));
    color: #07101d;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.jsm-faq-panel details {
    margin-top: 0;
    border: 0;
    border-bottom: 1px solid rgba(160, 194, 224, 0.16);
    background: transparent;
}

.jsm-faq-panel summary {
    position: relative;
    padding: 19px 42px 19px 0;
    color: #f3f7fb;
    font-size: 13px;
    font-weight: 850;
    list-style: none;
    cursor: pointer;
}

.jsm-faq-panel summary::-webkit-details-marker {
    display: none;
}

.jsm-faq-panel summary::after {
    position: absolute;
    top: 14px;
    right: 0;
    content: "+";
    color: var(--jsm-gold);
    font-size: 20px;
    line-height: 1;
}

.jsm-faq-panel details[open] summary::after {
    content: "−";
}

.jsm-faq-panel details p {
    padding: 0 36px 19px 0;
}

.jsm-protocol-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 60px;
    align-items: center;
    padding: clamp(36px, 5vw, 62px);
    background:
        radial-gradient(circle at 90% 20%, rgba(40, 168, 223, 0.12), transparent 36%),
        rgba(7, 20, 36, 0.62);
}

.jsm-protocol-card p {
    margin-top: 18px;
}

.jsm-protocol-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jsm-protocol-card li {
    position: relative;
    padding: 13px 14px 13px 40px;
    border: 0;
    background: transparent;
    color: #d1dfec;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.jsm-protocol-card li::before {
    position: absolute;
    top: 13px;
    left: 15px;
    content: "✓";
    color: var(--jsm-gold);
    font-weight: 950;
}

.jsm-home-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, calc(100% - 64px));
    margin: 104px auto 0;
    padding: 28px 0 10px;
    border-top: 1px solid var(--jsm-line);
    color: #7890a7;
    font-size: 11px;
    font-weight: 700;
}

.jsm-home-footer p {
    margin: 0;
}

.jsm-footer-left {
    display: grid;
    gap: 7px;
}

.jsm-home-footer a {
    color: #afc1d2;
    text-decoration: none;
}

.jsm-home-footer a:hover {
    color: var(--jsm-gold-light);
}

.jsm-footer-links {
    display: flex;
    gap: 10px;
}

@media (max-width: 1020px) {
    .jsm-public-header {
        grid-template-columns: 1fr auto;
    }

    .jsm-public-nav {
        display: none;
    }

    .jsm-home-hero {
        grid-template-columns: minmax(0, 1fr) minmax(330px, 0.78fr);
        padding: 54px 34px;
    }

    .jsm-home-content h1 {
        font-size: clamp(3rem, 7vw, 5.3rem);
    }

    .jsm-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .jsm-homepage {
        width: 100%;
        padding-top: 0;
    }

    .jsm-public-header {
        width: calc(100% - 28px);
        min-height: 62px;
        padding: 8px 10px;
    }

    .jsm-public-brand small {
        display: none;
    }

    .jsm-language-switcher a {
        min-width: 34px;
        min-height: 32px;
        padding: 0 5px;
    }

    .jsm-home-hero {
        display: flex;
        flex-direction: column;
        gap: 28px;
        min-height: 0;
        margin-top: 0;
        padding: 34px 22px 24px;
    }

    .jsm-home-hero::before {
        background-image:
            linear-gradient(180deg, rgba(3, 9, 20, 0.8) 0%, rgba(3, 9, 20, 0.94) 58%, rgba(3, 9, 20, 0.98) 100%),
            url("../images/jsm-europe-network-hero-v1.png");
        background-position: center, 60% top;
        background-size: cover;
    }

    .jsm-home-content {
        order: 2;
        width: 100%;
    }

    .jsm-home-login {
        order: 1;
        width: 100%;
    }

    body.login-body.jsm-public-home .login-card {
        max-width: none;
        margin: 0;
        padding: 24px 20px;
    }

    .jsm-home-content h1 {
        font-size: clamp(2.75rem, 13vw, 4.7rem);
    }

    .jsm-home-lead {
        margin-top: 20px;
        font-size: 15px;
    }

    .jsm-home-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .jsm-home-cta-link,
    .jsm-home-secondary-link {
        width: 100%;
        padding: 0 12px;
    }

    .jsm-home-section {
        width: calc(100% - 36px);
        padding-top: 54px;
    }

    .jsm-about-section {
        padding-top: 54px;
    }

    .jsm-home-intro-card,
    .jsm-protocol-card {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .jsm-home-intro-card {
        padding: 28px 22px;
    }

    .jsm-home-intro-card > div {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 28px;
    }

    .jsm-register-faq-grid {
        grid-template-columns: 1fr;
    }

    .jsm-protocol-card {
        padding: 28px 22px;
    }

    .jsm-home-footer {
        width: calc(100% - 36px);
        flex-direction: column;
        margin-top: 54px;
    }
}

@media (max-width: 520px) {
    .jsm-public-brand-logo {
        width: 62px;
        height: 42px;
    }

    .jsm-public-brand strong {
        font-size: 13px;
    }

    .jsm-home-hero {
        padding: 30px 17px 18px;
    }

    .jsm-home-content h1 {
        font-size: clamp(2.5rem, 14vw, 3.8rem);
    }

    .jsm-home-badges {
        display: grid;
        grid-template-columns: 1fr;
    }

    .jsm-home-badges span {
        justify-content: center;
    }

    .jsm-home-actions {
        grid-template-columns: 1fr;
    }

    .jsm-network-status {
        align-items: flex-start;
    }

    .jsm-network-status strong {
        line-height: 1.5;
    }

    .jsm-login-heading {
        align-items: flex-start;
    }

    .jsm-login-logo {
        flex-basis: 104px;
        width: 104px;
        height: 71px;
    }

    .jsm-login-heading h2 {
        font-size: 18px;
    }

    .jsm-feature-grid {
        grid-template-columns: 1fr;
    }

    .jsm-feature-card {
        min-height: 0;
    }

    .jsm-feature-card > strong {
        margin-bottom: 28px;
    }

    .jsm-register-card,
    .jsm-faq-panel {
        padding: 24px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .jsm-network-pulse::after {
        animation: none;
    }
}
